home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Reference / the cmsp digests ('94-'97) / csmp digest Vol 3 No 053 < prev    next >
BinHex  |  1997-05-06  |  84.0 KB  |  [TEXT/R*ch]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: BinHex (archive/binHex).

You can browse this item here: csmp digest Vol 3 No 053

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert BinHex (archive/binHex) magic Supported
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, Non-ISO extended-ASCII text, with CR line terminators default
100% TrID E-Mail message (Var. 2) default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% lsar BinHex default
100% detectItEasy Format: plain text[CR] default (weak)
100% xdgMime message/rfc822 default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 70 6f | 74 74 69 65 72 40 63 6c |From: po|ttier@cl|
|00000010| 69 70 70 65 72 2e 65 6e | 73 2e 66 72 20 28 46 72 |ipper.en|s.fr (Fr|
|00000020| 61 6e 63 6f 69 73 20 50 | 6f 74 74 69 65 72 29 0d |ancois P|ottier).|
|00000030| 53 75 62 6a 65 63 74 3a | 20 63 73 6d 70 2d 64 69 |Subject:| csmp-di|
|00000040| 67 65 73 74 2d 76 33 2d | 30 35 33 0d 44 61 74 65 |gest-v3-|053.Date|
|00000050| 3a 20 4d 6f 6e 2c 20 35 | 20 53 65 70 20 31 39 39 |: Mon, 5| Sep 199|
|00000060| 34 20 31 35 3a 32 38 3a | 32 35 20 2b 30 32 30 30 |4 15:28:|25 +0200|
|00000070| 20 28 4d 45 54 20 44 53 | 54 29 0d 0d 43 2e 53 2e | (MET DS|T)..C.S.|
|00000080| 4d 2e 50 2e 20 44 69 67 | 65 73 74 20 20 20 20 20 |M.P. Dig|est |
|00000090| 20 20 20 20 20 20 20 20 | 4d 6f 6e 2c 20 30 35 20 | |Mon, 05 |
|000000a0| 53 65 70 20 39 34 20 20 | 20 20 20 20 20 56 6f 6c |Sep 94 | Vol|
|000000b0| 75 6d 65 20 33 20 3a 20 | 49 73 73 75 65 20 35 33 |ume 3 : |Issue 53|
|000000c0| 0d 20 0d 54 6f 64 61 79 | 27 73 20 54 6f 70 69 63 |. .Today|'s Topic|
|000000d0| 73 3a 0d 20 0d 20 20 20 | 20 20 20 20 20 41 20 72 |s:. . | A r|
|000000e0| 65 61 6c 20 66 75 6e 6e | 79 20 73 74 6f 72 79 0d |eal funn|y story.|
|000000f0| 20 20 20 20 20 20 20 20 | 41 70 70 6c 65 53 63 72 | |AppleScr|
|00000100| 69 70 74 3a 20 65 76 65 | 6e 74 20 74 69 6d 65 73 |ipt: eve|nt times|
|00000110| 20 6f 75 74 0d 20 20 20 | 20 20 20 20 20 43 2b 2b | out. | C++|
|00000120| 20 56 69 72 74 75 61 6c | 20 44 65 73 74 72 75 63 | Virtual| Destruc|
|00000130| 74 6f 72 20 51 0d 20 20 | 20 20 20 20 20 20 45 6e |tor Q. | En|
|00000140| 75 6d 20 73 69 7a 65 20 | 2d 2d 20 77 68 61 74 27 |um size |-- what'|
|00000150| 73 20 74 68 65 20 4c 43 | 44 3f 0d 20 20 20 20 20 |s the LC|D?. |
|00000160| 20 20 20 46 6f 6c 6c 6f | 77 75 70 20 6f 6e 20 27 | Follo|wup on '|
|00000170| 53 61 66 65 20 53 61 76 | 65 27 20 70 72 6f 62 6c |Safe Sav|e' probl|
|00000180| 65 6d 20 2d 20 73 74 69 | 6c 6c 20 74 69 63 6b 69 |em - sti|ll ticki|
|00000190| 6e 67 21 0d 20 20 20 20 | 20 20 20 20 4d 57 20 44 |ng!. | MW D|
|000001a0| 65 62 75 67 4e 65 77 20 | 54 69 70 0d 20 20 20 20 |ebugNew |Tip. |
|000001b0| 20 20 20 20 53 63 72 6f | 6c 6c 62 61 72 73 20 69 | Scro|llbars i|
|000001c0| 6e 20 44 69 61 6c 6f 67 | 73 3f 0d 20 20 20 20 20 |n Dialog|s?. |
|000001d0| 20 20 20 53 68 6f 75 6c | 64 20 6e 65 77 20 70 72 | Shoul|d new pr|
|000001e0| 6f 67 72 61 6d 73 20 73 | 74 69 6c 6c 20 62 65 20 |ograms s|till be |
|000001f0| 53 79 73 74 65 6d 20 36 | 20 63 6f 6d 70 61 74 69 |System 6| compati|
|00000200| 62 6c 65 3f 0d 20 20 20 | 20 20 20 20 20 54 68 65 |ble?. | The|
|00000210| 20 53 79 73 74 65 6d 20 | 37 2e 35 20 54 68 69 6e | System |7.5 Thin|
|00000220| 6b 20 44 65 62 75 67 67 | 65 72 20 42 75 67 20 2d |k Debugg|er Bug -|
|00000230| 20 61 6e 64 20 66 69 78 | 21 0d 20 20 20 20 20 20 | and fix|!. |
|00000240| 20 20 54 68 69 6e 6b 20 | 44 65 62 75 67 67 65 72 | Think |Debugger|
|00000250| 20 26 20 49 4e 49 54 20 | 73 6f 75 72 63 65 20 63 | & INIT |source c|
|00000260| 6f 64 65 0d 20 20 20 20 | 20 20 20 20 5b 51 5d 20 |ode. | [Q] |
|00000270| 48 6f 77 20 74 6f 20 64 | 6f 20 6e 6f 6e 2d 62 79 |How to d|o non-by|
|00000280| 70 61 73 73 61 62 6c 65 | 20 49 4e 49 54 3f 0d 20 |passable| INIT?. |
|00000290| 20 20 20 20 20 20 20 6d | 61 6c 6c 6f 63 20 70 72 | m|alloc pr|
|000002a0| 6f 62 6c 65 6d 20 69 6e | 20 43 57 2d 34 0d 0d 0d |oblem in| CW-4...|
|000002b0| 0d 54 68 65 20 43 6f 6d | 70 2e 53 79 73 2e 4d 61 |.The Com|p.Sys.Ma|
|000002c0| 63 2e 50 72 6f 67 72 61 | 6d 6d 65 72 20 44 69 67 |c.Progra|mmer Dig|
|000002d0| 65 73 74 20 69 73 20 6d | 6f 64 65 72 61 74 65 64 |est is m|oderated|
|000002e0| 20 62 79 20 46 72 61 6e | 63 6f 69 73 20 50 6f 74 | by Fran|cois Pot|
|000002f0| 74 69 65 72 0d 28 70 6f | 74 74 69 65 72 40 63 6c |tier.(po|ttier@cl|
|00000300| 69 70 70 65 72 2e 65 6e | 73 2e 66 72 29 2e 0d 20 |ipper.en|s.fr).. |
|00000310| 0d 54 68 65 20 64 69 67 | 65 73 74 20 69 73 20 61 |.The dig|est is a|
|00000320| 20 63 6f 6c 6c 65 63 74 | 69 6f 6e 20 6f 66 20 61 | collect|ion of a|
|00000330| 72 74 69 63 6c 65 20 74 | 68 72 65 61 64 73 20 66 |rticle t|hreads f|
|00000340| 72 6f 6d 20 74 68 65 20 | 69 6e 74 65 72 6e 65 74 |rom the |internet|
|00000350| 20 6e 65 77 73 67 72 6f | 75 70 0d 63 6f 6d 70 2e | newsgro|up.comp.|
|00000360| 73 79 73 2e 6d 61 63 2e | 70 72 6f 67 72 61 6d 6d |sys.mac.|programm|
|00000370| 65 72 2e 20 20 49 74 20 | 69 73 20 64 65 73 69 67 |er. It |is desig|
|00000380| 6e 65 64 20 66 6f 72 20 | 70 65 6f 70 6c 65 20 77 |ned for |people w|
|00000390| 68 6f 20 72 65 61 64 20 | 63 2e 73 2e 6d 2e 70 2e |ho read |c.s.m.p.|
|000003a0| 20 73 65 6d 69 2d 0d 72 | 65 67 75 6c 61 72 6c 79 | semi-.r|egularly|
|000003b0| 20 61 6e 64 20 77 61 6e | 74 20 61 6e 20 61 72 63 | and wan|t an arc|
|000003c0| 68 69 76 65 20 6f 66 20 | 74 68 65 20 64 69 73 63 |hive of |the disc|
|000003d0| 75 73 73 69 6f 6e 73 2e | 20 20 49 66 20 79 6f 75 |ussions.| If you|
|000003e0| 20 64 6f 6e 27 74 20 6b | 6e 6f 77 20 77 68 61 74 | don't k|now what|
|000003f0| 20 61 0d 6e 65 77 73 67 | 72 6f 75 70 20 69 73 2c | a.newsg|roup is,|
|00000400| 20 79 6f 75 20 70 72 6f | 62 61 62 6c 79 20 64 6f | you pro|bably do|
|00000410| 6e 27 74 20 68 61 76 65 | 20 61 63 63 65 73 73 20 |n't have| access |
|00000420| 74 6f 20 69 74 2e 20 20 | 41 73 6b 20 79 6f 75 72 |to it. |Ask your|
|00000430| 20 73 79 73 74 65 6d 73 | 0d 61 64 6d 69 6e 69 73 | systems|.adminis|
|00000440| 74 72 61 74 6f 72 28 73 | 29 20 66 6f 72 20 64 65 |trator(s|) for de|
|00000450| 74 61 69 6c 73 2e 20 20 | 49 66 20 79 6f 75 20 64 |tails. |If you d|
|00000460| 6f 6e 27 74 20 68 61 76 | 65 20 61 63 63 65 73 73 |on't hav|e access|
|00000470| 20 74 6f 20 6e 65 77 73 | 2c 20 79 6f 75 20 6d 61 | to news|, you ma|
|00000480| 79 0d 73 74 69 6c 6c 20 | 62 65 20 61 62 6c 65 20 |y.still |be able |
|00000490| 74 6f 20 70 6f 73 74 20 | 6d 65 73 73 61 67 65 73 |to post |messages|
|000004a0| 20 74 6f 20 74 68 65 20 | 67 72 6f 75 70 20 62 79 | to the |group by|
|000004b0| 20 75 73 69 6e 67 20 61 | 20 6d 61 69 6c 20 73 65 | using a| mail se|
|000004c0| 72 76 65 72 20 6c 69 6b | 65 0d 61 6e 6f 6e 2e 70 |rver lik|e.anon.p|
|000004d0| 65 6e 65 74 2e 66 69 20 | 28 6d 61 69 6c 20 68 65 |enet.fi |(mail he|
|000004e0| 6c 70 40 61 6e 6f 6e 2e | 70 65 6e 65 74 2e 66 69 |lp@anon.|penet.fi|
|000004f0| 20 66 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d | for mor|e inform|
|00000500| 61 74 69 6f 6e 29 2e 0d | 20 0d 45 61 63 68 20 69 |ation)..| .Each i|
|00000510| 73 73 75 65 20 6f 66 20 | 74 68 65 20 64 69 67 65 |ssue of |the dige|
|00000520| 73 74 20 63 6f 6e 74 61 | 69 6e 73 20 6f 6e 65 20 |st conta|ins one |
|00000530| 6f 72 20 6d 6f 72 65 20 | 73 65 74 73 20 6f 66 20 |or more |sets of |
|00000540| 61 72 74 69 63 6c 65 73 | 20 28 63 61 6c 6c 65 64 |articles| (called|
|00000550| 0d 74 68 72 65 61 64 73 | 29 2c 20 77 69 74 68 20 |.threads|), with |
|00000560| 65 61 63 68 20 73 65 74 | 20 63 6f 72 72 65 73 70 |each set| corresp|
|00000570| 6f 6e 64 69 6e 67 20 74 | 6f 20 61 20 27 64 69 73 |onding t|o a 'dis|
|00000580| 63 75 73 73 69 6f 6e 27 | 20 6f 66 20 61 20 70 61 |cussion'| of a pa|
|00000590| 72 74 69 63 75 6c 61 72 | 0d 73 75 62 6a 65 63 74 |rticular|.subject|
|000005a0| 2e 20 20 54 68 65 20 61 | 72 74 69 63 6c 65 73 20 |. The a|rticles |
|000005b0| 61 72 65 20 6e 6f 74 20 | 65 64 69 74 65 64 3b 20 |are not |edited; |
|000005c0| 61 6c 6c 20 61 72 74 69 | 63 6c 65 73 20 69 6e 63 |all arti|cles inc|
|000005d0| 6c 75 64 65 64 20 69 6e | 20 74 68 69 73 20 64 69 |luded in| this di|
|000005e0| 67 65 73 74 0d 61 72 65 | 20 69 6e 20 74 68 65 69 |gest.are| in thei|
|000005f0| 72 20 6f 72 69 67 69 6e | 61 6c 20 70 6f 73 74 65 |r origin|al poste|
|00000600| 64 20 66 6f 72 6d 20 28 | 61 73 20 72 65 63 65 69 |d form (|as recei|
|00000610| 76 65 64 20 62 79 20 6f | 75 72 20 6e 65 77 73 20 |ved by o|ur news |
|00000620| 73 65 72 76 65 72 20 61 | 74 0d 6e 65 66 2e 65 6e |server a|t.nef.en|
|00000630| 73 2e 66 72 29 2e 20 20 | 41 72 74 69 63 6c 65 20 |s.fr). |Article |
|00000640| 74 68 72 65 61 64 73 20 | 61 72 65 20 6e 6f 74 20 |threads |are not |
|00000650| 61 64 64 65 64 20 74 6f | 20 74 68 65 20 64 69 67 |added to| the dig|
|00000660| 65 73 74 20 75 6e 74 69 | 6c 20 74 68 65 20 6c 61 |est unti|l the la|
|00000670| 73 74 0d 61 72 74 69 63 | 6c 65 20 61 64 64 65 64 |st.artic|le added|
|00000680| 20 74 6f 20 74 68 65 20 | 74 68 72 65 61 64 20 69 | to the |thread i|
|00000690| 73 20 61 74 20 6c 65 61 | 73 74 20 74 77 6f 20 77 |s at lea|st two w|
|000006a0| 65 65 6b 73 20 6f 6c 64 | 20 28 74 68 69 73 20 69 |eeks old| (this i|
|000006b0| 73 20 74 6f 20 65 6e 73 | 75 72 65 20 74 68 61 74 |s to ens|ure that|
|000006c0| 0d 74 68 65 20 74 68 72 | 65 61 64 20 69 73 20 64 |.the thr|ead is d|
|000006d0| 65 61 64 20 62 65 66 6f | 72 65 20 61 64 64 69 6e |ead befo|re addin|
|000006e0| 67 20 69 74 20 74 6f 20 | 74 68 65 20 64 69 67 65 |g it to |the dige|
|000006f0| 73 74 29 2e 20 20 41 72 | 74 69 63 6c 65 20 74 68 |st). Ar|ticle th|
|00000700| 72 65 61 64 73 20 74 68 | 61 74 0d 63 6f 6e 73 69 |reads th|at.consi|
|00000710| 73 74 20 6f 66 20 6f 6e | 6c 79 20 6f 6e 65 20 6d |st of on|ly one m|
|00000720| 65 73 73 61 67 65 20 61 | 72 65 20 67 65 6e 65 72 |essage a|re gener|
|00000730| 61 6c 6c 79 20 6e 6f 74 | 20 69 6e 63 6c 75 64 65 |ally not| include|
|00000740| 64 20 69 6e 20 74 68 65 | 20 64 69 67 65 73 74 2e |d in the| digest.|
|00000750| 0d 0d 54 68 65 20 64 69 | 67 65 73 74 20 69 73 20 |..The di|gest is |
|00000760| 6f 66 66 69 63 69 61 6c | 6c 79 20 64 69 73 74 72 |official|ly distr|
|00000770| 69 62 75 74 65 64 20 62 | 79 20 74 77 6f 20 6d 65 |ibuted b|y two me|
|00000780| 61 6e 73 2c 20 62 79 20 | 65 6d 61 69 6c 20 61 6e |ans, by |email an|
|00000790| 64 20 66 74 70 2e 0d 0d | 49 66 20 79 6f 75 20 77 |d ftp...|If you w|
|000007a0| 61 6e 74 20 74 6f 20 72 | 65 63 65 69 76 65 20 74 |ant to r|eceive t|
|000007b0| 68 65 20 64 69 67 65 73 | 74 20 62 79 20 6d 61 69 |he diges|t by mai|
|000007c0| 6c 2c 20 73 65 6e 64 20 | 65 6d 61 69 6c 20 74 6f |l, send |email to|
|000007d0| 20 6c 69 73 74 73 65 72 | 76 40 65 6e 73 2e 66 72 | listser|v@ens.fr|
|000007e0| 0d 77 69 74 68 20 6e 6f | 20 73 75 62 6a 65 63 74 |.with no| subject|
|000007f0| 20 61 6e 64 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 | and one| of the |
|00000800| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 6d 6d 61 6e |followin|g comman|
|00000810| 64 73 20 61 73 20 62 6f | 64 79 3a 0d 20 20 20 20 |ds as bo|dy:. |
|00000820| 68 65 6c 70 09 09 20 20 | 20 20 20 20 20 20 20 20 |help.. | |
|00000830| 20 20 20 20 20 20 53 65 | 6e 64 73 20 79 6f 75 20 | Se|nds you |
|00000840| 61 20 73 75 6d 6d 61 72 | 79 20 6f 66 20 63 6f 6d |a summar|y of com|
|00000850| 6d 61 6e 64 73 0d 20 20 | 20 20 73 75 62 73 63 72 |mands. | subscr|
|00000860| 69 62 65 20 63 73 6d 70 | 2d 64 69 67 65 73 74 20 |ibe csmp|-digest |
|00000870| 59 6f 75 72 20 4e 61 6d | 65 09 41 64 64 73 20 79 |Your Nam|e.Adds y|
|00000880| 6f 75 20 74 6f 20 74 68 | 65 20 6d 61 69 6c 69 6e |ou to th|e mailin|
|00000890| 67 20 6c 69 73 74 0d 20 | 20 20 20 73 69 67 6e 6f |g list. | signo|
|000008a0| 66 66 20 63 73 6d 70 2d | 64 69 67 65 73 74 09 09 |ff csmp-|digest..|
|000008b0| 09 52 65 6d 6f 76 65 73 | 20 79 6f 75 20 66 72 6f |.Removes| you fro|
|000008c0| 6d 20 74 68 65 20 6c 69 | 73 74 0d 4f 6e 63 65 20 |m the li|st.Once |
|000008d0| 79 6f 75 20 68 61 76 65 | 20 73 75 62 73 63 72 69 |you have| subscri|
|000008e0| 62 65 64 2c 20 79 6f 75 | 20 77 69 6c 6c 20 61 75 |bed, you| will au|
|000008f0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 72 65 63 65 |tomatica|lly rece|
|00000900| 69 76 65 20 65 61 63 68 | 20 6e 65 77 0d 69 73 73 |ive each| new.iss|
|00000910| 75 65 20 61 73 20 69 74 | 20 69 73 20 63 72 65 61 |ue as it| is crea|
|00000920| 74 65 64 2e 0d 0d 54 68 | 65 20 6f 66 66 69 63 69 |ted...Th|e offici|
|00000930| 61 6c 20 66 74 70 20 69 | 6e 66 6f 20 69 73 20 2f |al ftp i|nfo is /|
|00000940| 2f 66 74 70 2e 64 61 72 | 74 6d 6f 75 74 68 2e 65 |/ftp.dar|tmouth.e|
|00000950| 64 75 2f 70 75 62 2f 63 | 73 6d 70 2d 64 69 67 65 |du/pub/c|smp-dige|
|00000960| 73 74 2e 0d 51 75 65 73 | 74 69 6f 6e 73 20 72 65 |st..Ques|tions re|
|00000970| 6c 61 74 65 64 20 74 6f | 20 74 68 65 20 66 74 70 |lated to| the ftp|
|00000980| 20 73 69 74 65 20 73 68 | 6f 75 6c 64 20 62 65 20 | site sh|ould be |
|00000990| 64 69 72 65 63 74 65 64 | 20 74 6f 0d 73 63 6f 74 |directed| to.scot|
|000009a0| 74 2e 73 69 6c 76 65 72 | 40 64 61 72 74 6d 6f 75 |t.silver|@dartmou|
|000009b0| 74 68 2e 65 64 75 2e 20 | 43 75 72 72 65 6e 74 6c |th.edu. |Currentl|
|000009c0| 79 20 6e 6f 20 70 72 65 | 76 69 6f 75 73 20 76 6f |y no pre|vious vo|
|000009d0| 6c 75 6d 65 73 20 6f 66 | 20 74 68 65 20 43 53 4d |lumes of| the CSM|
|000009e0| 50 0d 64 69 67 65 73 74 | 20 61 72 65 20 61 76 61 |P.digest| are ava|
|000009f0| 69 6c 61 62 6c 65 20 74 | 68 65 72 65 2e 0d 0d 41 |ilable t|here...A|
|00000a00| 6c 73 6f 2c 20 74 68 65 | 20 64 69 67 65 73 74 73 |lso, the| digests|
|00000a10| 20 61 72 65 20 61 76 61 | 69 6c 61 62 6c 65 20 74 | are ava|ilable t|
|00000a20| 6f 20 57 41 49 53 20 75 | 73 65 72 73 2e 20 20 54 |o WAIS u|sers. T|
|00000a30| 6f 20 73 65 61 72 63 68 | 20 62 61 63 6b 20 69 73 |o search| back is|
|00000a40| 73 75 65 73 0d 77 69 74 | 68 20 57 41 49 53 2c 20 |sues.wit|h WAIS, |
|00000a50| 75 73 65 20 63 6f 6d 70 | 2e 73 79 73 2e 6d 61 63 |use comp|.sys.mac|
|00000a60| 2e 70 72 6f 67 72 61 6d | 6d 65 72 2e 73 72 63 2e |.program|mer.src.|
|00000a70| 20 57 69 74 68 20 4d 6f | 73 61 69 63 2c 20 75 73 | With Mo|saic, us|
|00000a80| 65 0d 68 74 74 70 3a 2f | 2f 77 77 77 2e 77 61 69 |e.http:/|/www.wai|
|00000a90| 73 2e 63 6f 6d 2f 77 61 | 69 73 2d 64 62 73 2f 63 |s.com/wa|is-dbs/c|
|00000aa0| 6f 6d 70 2e 73 79 73 2e | 6d 61 63 2e 70 72 6f 67 |omp.sys.|mac.prog|
|00000ab0| 72 61 6d 6d 65 72 2e 68 | 74 6d 6c 2e 0d 0d 0d 2d |rammer.h|tml....-|
|00000ac0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ad0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ae0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000af0| 2d 2d 2d 2d 2d 2d 0d 0d | 3e 46 72 6f 6d 20 6e 69 |------..|>From ni|
|00000b00| 63 6b 2b 40 70 69 74 74 | 2e 65 64 75 20 28 20 6e |ck+@pitt|.edu ( n|
|00000b10| 69 63 6b 2e 63 20 29 0d | 53 75 62 6a 65 63 74 3a |ick.c ).|Subject:|
|00000b20| 20 41 20 72 65 61 6c 20 | 66 75 6e 6e 79 20 73 74 | A real |funny st|
|00000b30| 6f 72 79 0d 44 61 74 65 | 3a 20 46 72 69 2c 20 31 |ory.Date|: Fri, 1|
|00000b40| 39 20 41 75 67 20 39 34 | 20 32 31 3a 34 30 3a 30 |9 Aug 94| 21:40:0|
|00000b50| 34 20 47 4d 54 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |4 GMT.Or|ganizati|
|00000b60| 6f 6e 3a 20 54 68 65 20 | 50 69 74 74 2c 20 43 68 |on: The |Pitt, Ch|
|00000b70| 65 6d 69 73 74 72 79 0d | 0d 0d 46 6f 6c 6b 73 3a |emistry.|..Folks:|
|00000b80| 0d 0d 20 20 20 20 41 20 | 66 72 69 65 6e 64 20 6f |.. A |friend o|
|00000b90| 66 20 6d 69 6e 65 20 6a | 75 73 74 20 73 65 6e 74 |f mine j|ust sent|
|00000ba0| 20 6d 65 20 74 68 69 73 | 2c 20 70 65 72 73 6f 6e | me this|, person|
|00000bb0| 61 6c 6c 79 20 49 20 74 | 68 69 6e 6b 20 69 74 27 |ally I t|hink it'|
|00000bc0| 73 0d 20 20 20 20 20 20 | 68 69 6c 61 72 69 6f 75 |s. |hilariou|
|00000bd0| 73 20 28 73 6f 20 6c 6f | 6e 67 20 61 73 20 79 6f |s (so lo|ng as yo|
|00000be0| 75 20 64 6f 6e 27 74 20 | 77 6f 72 6b 20 66 6f 72 |u don't |work for|
|00000bf0| 20 4d 53 20 3a 2d 29 2e | 20 20 45 6e 6a 6f 79 2c | MS :-).| Enjoy,|
|00000c00| 0d 0d 0d 2d 20 2d 2d 0d | 0d 0d 22 53 74 61 72 20 |...- --.|.."Star |
|00000c10| 54 72 65 6b 20 4c 6f 73 | 74 20 45 70 69 73 6f 64 |Trek Los|t Episod|
|00000c20| 65 73 22 20 74 72 61 6e | 73 63 72 69 70 74 2e 0d |es" tran|script..|
|00000c30| 0d 3c 50 69 63 61 72 64 | 3e 20 22 4d 72 2e 20 4c |.<Picard|> "Mr. L|
|00000c40| 61 46 6f 72 67 65 2c 20 | 68 61 76 65 20 79 6f 75 |aForge, |have you|
|00000c50| 20 68 61 64 20 61 6e 79 | 20 73 75 63 63 65 73 73 | had any| success|
|00000c60| 20 77 69 74 68 20 79 6f | 75 72 0d 61 74 74 65 6d | with yo|ur.attem|
|00000c70| 70 74 73 20 61 74 20 66 | 69 6e 64 69 6e 67 20 61 |pts at f|inding a|
|00000c80| 20 77 65 61 6b 6e 65 73 | 73 20 77 69 74 68 20 74 | weaknes|s with t|
|00000c90| 68 65 20 42 6f 72 67 3f | 20 20 41 6e 64 20 4d 72 |he Borg?| And Mr|
|00000ca0| 2e 20 44 61 74 61 2c 0d | 68 61 76 65 20 79 6f 75 |. Data,.|have you|
|00000cb0| 20 62 65 65 6e 20 61 62 | 6c 65 20 74 6f 20 61 63 | been ab|le to ac|
|00000cc0| 63 65 73 73 20 74 68 65 | 69 72 20 63 6f 6d 6d 61 |cess the|ir comma|
|00000cd0| 6e 64 20 70 61 74 68 77 | 61 79 73 3f 22 0d 0d 3c |nd pathw|ays?"..<|
|00000ce0| 47 65 6f 72 64 69 3e 20 | 22 59 65 73 2c 20 43 61 |Geordi> |"Yes, Ca|
|00000cf0| 70 74 61 69 6e 2e 20 20 | 49 6e 20 66 61 63 74 2c |ptain. |In fact,|
|00000d00| 20 77 65 20 66 6f 75 6e | 64 20 74 68 65 20 61 6e | we foun|d the an|
|00000d10| 73 77 65 72 20 62 79 0d | 73 65 61 72 63 68 69 6e |swer by.|searchin|
|00000d20| 67 20 74 68 72 6f 75 67 | 68 20 6f 75 72 20 61 72 |g throug|h our ar|
|00000d30| 63 68 69 76 65 73 20 6f | 6e 20 6c 61 74 65 20 74 |chives o|n late t|
|00000d40| 77 65 6e 74 69 65 74 68 | 2d 63 65 6e 74 75 72 79 |wentieth|-century|
|00000d50| 0d 63 6f 6d 70 75 74 69 | 6e 67 20 74 65 63 68 6e |.computi|ng techn|
|00000d60| 6f 6c 6f 67 79 2e 22 0d | 0d 3c 47 65 6f 72 64 69 |ology.".|.<Geordi|
|00000d70| 20 70 72 65 73 73 65 73 | 20 61 20 6b 65 79 2c 20 | presses| a key, |
|00000d80| 61 6e 64 20 61 20 6c 6f | 67 6f 20 61 70 70 65 61 |and a lo|go appea|
|00000d90| 72 73 20 6f 6e 20 74 68 | 65 20 63 6f 6d 70 75 74 |rs on th|e comput|
|00000da0| 65 72 0d 73 63 72 65 65 | 6e 2e 3e 0d 0d 3c 52 69 |er.scree|n.>..<Ri|
|00000db0| 6b 65 72 20 6c 6f 6f 6b | 73 20 70 75 7a 7a 6c 65 |ker look|s puzzle|
|00000dc0| 64 2e 3e 20 22 57 68 61 | 74 20 74 68 65 20 68 65 |d.> "Wha|t the he|
|00000dd0| 6c 6c 20 69 73 20 27 4d | 69 63 72 6f 73 6f 66 74 |ll is 'M|icrosoft|
|00000de0| 27 3f 22 0d 0d 3c 44 61 | 74 61 20 74 75 72 6e 73 |'?"..<Da|ta turns|
|00000df0| 20 74 6f 20 61 6e 73 77 | 65 72 2e 3e 20 22 41 6c | to answ|er.> "Al|
|00000e00| 6c 6f 77 20 6d 65 20 74 | 6f 20 65 78 70 6c 61 69 |low me t|o explai|
|00000e10| 6e 2e 20 20 57 65 20 77 | 69 6c 6c 20 73 65 6e 64 |n. We w|ill send|
|00000e20| 0d 74 68 69 73 20 70 72 | 6f 67 72 61 6d 2c 20 66 |.this pr|ogram, f|
|00000e30| 6f 72 20 73 6f 6d 65 20 | 72 65 61 73 6f 6e 20 63 |or some |reason c|
|00000e40| 61 6c 6c 65 64 20 27 57 | 69 6e 64 6f 77 73 2c 27 |alled 'W|indows,'|
|00000e50| 20 74 68 72 6f 75 67 68 | 0d 74 68 65 20 42 6f 72 | through|.the Bor|
|00000e60| 67 20 63 6f 6d 6d 61 6e | 64 20 70 61 74 68 77 61 |g comman|d pathwa|
|00000e70| 79 73 2e 20 20 4f 6e 63 | 65 20 69 6e 73 69 64 65 |ys. Onc|e inside|
|00000e80| 20 74 68 65 69 72 20 72 | 6f 6f 74 20 63 6f 6d 2d | their r|oot com-|
|00000e90| 0d 6d 61 6e 64 20 75 6e | 69 74 2c 20 69 74 20 77 |.mand un|it, it w|
|00000ea0| 69 6c 6c 20 62 65 67 69 | 6e 20 63 6f 6e 73 75 6d |ill begi|n consum|
|00000eb0| 69 6e 67 20 73 79 73 74 | 65 6d 20 72 65 73 6f 75 |ing syst|em resou|
|00000ec0| 72 63 65 73 20 61 74 20 | 61 6e 0d 75 6e 73 74 6f |rces at |an.unsto|
|00000ed0| 70 70 61 62 6c 65 20 72 | 61 74 65 2e 22 0d 0d 3c |ppable r|ate."..<|
|00000ee0| 50 69 63 61 72 64 3e 20 | 22 42 75 74 20 74 68 65 |Picard> |"But the|
|00000ef0| 20 42 6f 72 67 20 68 61 | 76 65 20 74 68 65 20 61 | Borg ha|ve the a|
|00000f00| 62 69 6c 69 74 79 20 74 | 6f 20 61 64 61 70 74 2e |bility t|o adapt.|
|00000f10| 20 20 57 6f 6e 27 74 0d | 74 68 65 79 20 61 6c 74 | Won't.|they alt|
|00000f20| 65 72 20 74 68 65 69 72 | 20 70 72 6f 63 65 73 73 |er their| process|
|00000f30| 69 6e 67 20 73 79 73 74 | 65 6d 73 20 74 6f 20 69 |ing syst|ems to i|
|00000f40| 6e 63 72 65 61 73 65 20 | 74 68 65 69 72 20 73 74 |ncrease |their st|
|00000f50| 6f 72 61 67 65 0d 63 61 | 70 61 63 69 74 79 3f 22 |orage.ca|pacity?"|
|00000f60| 0d 0d 3c 44 61 74 61 3e | 20 22 59 65 73 2c 20 43 |..<Data>| "Yes, C|
|00000f70| 61 70 74 61 69 6e 2e 20 | 20 42 75 74 20 77 68 65 |aptain. | But whe|
|00000f80| 6e 20 27 57 69 6e 64 6f | 77 73 27 20 64 65 74 65 |n 'Windo|ws' dete|
|00000f90| 63 74 73 20 74 68 69 73 | 2c 20 69 74 0d 77 69 6c |cts this|, it.wil|
|00000fa0| 6c 20 63 72 65 61 74 65 | 20 61 20 6e 65 77 20 76 |l create| a new v|
|00000fb0| 65 72 73 69 6f 6e 20 6f | 66 20 69 74 73 65 6c 66 |ersion o|f itself|
|00000fc0| 20 63 61 6c 6c 65 64 20 | 61 6e 20 27 75 70 67 72 | called |an 'upgr|
|00000fd0| 61 64 65 2e 27 20 20 54 | 68 65 0d 75 73 65 20 6f |ade.' T|he.use o|
|00000fe0| 66 20 72 65 73 6f 75 72 | 63 65 73 20 69 6e 63 72 |f resour|ces incr|
|00000ff0| 65 61 73 65 73 20 65 78 | 70 6f 6e 65 6e 74 69 61 |eases ex|ponentia|
|00001000| 6c 6c 79 20 77 69 74 68 | 20 65 61 63 68 20 69 74 |lly with| each it|
|00001010| 65 72 61 74 69 6f 6e 2e | 0d 54 68 65 20 42 6f 72 |eration.|.The Bor|
|00001020| 67 20 77 69 6c 6c 20 6e | 6f 74 20 62 65 20 61 62 |g will n|ot be ab|
|00001030| 6c 65 20 74 6f 20 61 64 | 61 70 74 20 71 75 69 63 |le to ad|apt quic|
|00001040| 6b 6c 79 20 65 6e 6f 75 | 67 68 2e 0d 45 76 65 6e |kly enou|gh..Even|
|00001050| 74 75 61 6c 6c 79 20 61 | 6c 6c 20 6f 66 20 74 68 |tually a|ll of th|
|00001060| 65 69 72 20 70 72 6f 63 | 65 73 73 69 6e 67 20 61 |eir proc|essing a|
|00001070| 62 69 6c 69 74 79 20 77 | 69 6c 6c 20 62 65 20 74 |bility w|ill be t|
|00001080| 61 6b 65 6e 20 6f 76 65 | 72 0d 61 6e 64 20 6e 6f |aken ove|r.and no|
|00001090| 6e 65 20 77 69 6c 6c 20 | 62 65 20 61 76 61 69 6c |ne will |be avail|
|000010a0| 61 62 6c 65 20 66 6f 72 | 20 74 68 65 69 72 20 6e |able for| their n|
|000010b0| 6f 72 6d 61 6c 20 6f 70 | 65 72 61 74 69 6f 6e 61 |ormal op|erationa|
|000010c0| 6c 0d 66 75 6e 63 74 69 | 6f 6e 73 2e 22 0d 0d 3c |l.functi|ons."..<|
|000010d0| 50 69 63 61 72 64 3e 20 | 22 45 78 63 65 6c 6c 65 |Picard> |"Excelle|
|000010e0| 6e 74 20 77 6f 72 6b 2e | 20 20 54 68 69 73 20 69 |nt work.| This i|
|000010f0| 73 20 65 76 65 6e 20 62 | 65 74 74 65 72 20 74 68 |s even b|etter th|
|00001100| 61 6e 20 74 68 61 74 0d | 27 75 6e 73 6f 6c 76 61 |an that.|'unsolva|
|00001110| 62 6c 65 20 67 65 6f 6d | 65 74 72 69 63 20 73 68 |ble geom|etric sh|
|00001120| 61 70 65 27 20 69 64 65 | 61 2e 22 0d 0d 3c 2e 20 |ape' ide|a."..<. |
|00001130| 2e 20 2e 20 31 35 20 6d | 69 6e 75 74 65 73 20 6c |. . 15 m|inutes l|
|00001140| 61 74 65 72 20 2e 20 2e | 20 2e 3e 0d 0d 3c 44 61 |ater . .| .>..<Da|
|00001150| 74 61 3e 20 22 43 61 70 | 74 61 69 6e 2c 20 77 65 |ta> "Cap|tain, we|
|00001160| 20 68 61 76 65 20 73 75 | 63 63 65 73 73 66 75 6c | have su|ccessful|
|00001170| 6c 79 20 69 6e 73 74 61 | 6c 6c 65 64 20 74 68 65 |ly insta|lled the|
|00001180| 0d 27 57 69 6e 64 6f 77 | 73 27 20 69 6e 20 74 68 |.'Window|s' in th|
|00001190| 65 20 63 6f 6d 6d 61 6e | 64 20 75 6e 69 74 20 61 |e comman|d unit a|
|000011a0| 6e 64 2c 20 61 73 20 65 | 78 70 65 63 74 65 64 2c |nd, as e|xpected,|
|000011b0| 20 69 74 0d 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 | it.imme|diately |
|000011c0| 63 6f 6e 73 75 6d 65 64 | 20 38 35 25 20 6f 66 20 |consumed| 85% of |
|000011d0| 61 6c 6c 20 72 65 73 6f | 75 72 63 65 73 2e 20 20 |all reso|urces. |
|000011e0| 57 65 2c 20 68 6f 77 65 | 76 65 72 2c 0d 68 61 76 |We, howe|ver,.hav|
|000011f0| 65 20 6e 6f 74 20 72 65 | 63 65 69 76 65 64 20 61 |e not re|ceived a|
|00001200| 6e 79 20 63 6f 6e 66 69 | 72 6d 61 74 69 6f 6e 20 |ny confi|rmation |
|00001210| 6f 66 20 74 68 65 20 65 | 78 70 65 63 74 65 64 0d |of the e|xpected.|
|00001220| 27 75 70 67 72 61 64 65 | 2e 27 22 0d 0d 3c 47 65 |'upgrade|.'"..<Ge|
|00001230| 6f 72 64 69 3e 20 22 4f | 75 72 20 73 63 61 6e 6e |ordi> "O|ur scann|
|00001240| 65 72 73 20 68 61 76 65 | 20 70 69 63 6b 65 64 20 |ers have| picked |
|00001250| 75 70 20 61 6e 20 69 6e | 63 72 65 61 73 65 20 69 |up an in|crease i|
|00001260| 6e 20 42 6f 72 67 0d 73 | 74 6f 72 61 67 65 20 61 |n Borg.s|torage a|
|00001270| 6e 64 20 43 50 55 20 63 | 61 70 61 63 69 74 79 20 |nd CPU c|apacity |
|00001280| 74 6f 20 63 6f 6d 70 65 | 6e 73 61 74 65 2c 20 62 |to compe|nsate, b|
|00001290| 75 74 20 77 65 20 73 74 | 69 6c 6c 20 68 61 76 65 |ut we st|ill have|
|000012a0| 20 6e 6f 0d 69 6e 64 69 | 63 61 74 69 6f 6e 20 6f | no.indi|cation o|
|000012b0| 66 20 61 6e 20 27 75 70 | 67 72 61 64 65 27 20 74 |f an 'up|grade' t|
|000012c0| 6f 20 63 6f 6d 70 65 6e | 73 61 74 65 20 66 6f 72 |o compen|sate for|
|000012d0| 20 74 68 65 69 72 20 69 | 6e 63 72 65 61 73 65 2e | their i|ncrease.|
|000012e0| 22 0d 0d 3c 50 69 63 61 | 72 64 3e 20 22 44 61 74 |"..<Pica|rd> "Dat|
|000012f0| 61 2c 20 73 63 61 6e 20 | 74 68 65 20 68 69 73 74 |a, scan |the hist|
|00001300| 6f 72 79 20 62 6f 6f 6b | 73 20 61 67 61 69 6e 20 |ory book|s again |
|00001310| 61 6e 64 20 64 65 74 65 | 72 6d 69 6e 65 0d 69 66 |and dete|rmine.if|
|00001320| 20 74 68 65 72 65 20 69 | 73 20 73 6f 6d 65 74 68 | there i|s someth|
|00001330| 69 6e 67 20 77 65 20 68 | 61 76 65 20 6d 69 73 73 |ing we h|ave miss|
|00001340| 65 64 2e 22 0d 0d 3c 44 | 61 74 61 3e 20 22 53 69 |ed."..<D|ata> "Si|
|00001350| 72 2c 20 49 20 62 65 6c | 69 65 76 65 20 74 68 65 |r, I bel|ieve the|
|00001360| 72 65 20 69 73 20 61 20 | 72 65 61 73 6f 6e 20 66 |re is a |reason f|
|00001370| 6f 72 20 74 68 65 20 66 | 61 69 6c 75 72 65 20 69 |or the f|ailure i|
|00001380| 6e 20 74 68 65 0d 27 75 | 70 67 72 61 64 65 2e 27 |n the.'u|pgrade.'|
|00001390| 20 20 41 70 70 61 72 65 | 6e 74 6c 79 20 74 68 65 | Appare|ntly the|
|000013a0| 20 42 6f 72 67 20 68 61 | 76 65 20 63 69 72 63 75 | Borg ha|ve circu|
|000013b0| 6d 76 65 6e 74 65 64 20 | 74 68 61 74 20 70 61 72 |mvented |that par|
|000013c0| 74 0d 6f 66 20 74 68 65 | 20 70 6c 61 6e 20 62 79 |t.of the| plan by|
|000013d0| 20 6e 6f 74 20 73 65 6e | 64 69 6e 67 20 69 6e 20 | not sen|ding in |
|000013e0| 74 68 65 69 72 20 27 72 | 65 67 69 73 74 72 61 74 |their 'r|egistrat|
|000013f0| 69 6f 6e 20 63 61 72 64 | 73 2e 27 22 0d 0d 3c 52 |ion card|s.'"..<R|
|00001400| 69 6b 65 72 3e 20 20 22 | 43 61 70 74 61 69 6e 2c |iker> "|Captain,|
|00001410| 20 77 65 20 68 61 76 65 | 20 6e 6f 20 63 68 6f 69 | we have| no choi|
|00001420| 63 65 2e 20 20 52 65 71 | 75 65 73 74 69 6e 67 0d |ce. Req|uesting.|
|00001430| 70 65 72 6d 69 73 73 69 | 6f 6e 20 74 6f 20 62 65 |permissi|on to be|
|00001440| 67 69 6e 20 65 6d 65 72 | 67 65 6e 63 79 20 65 73 |gin emer|gency es|
|00001450| 63 61 70 65 20 73 65 71 | 75 65 6e 63 65 20 33 46 |cape seq|uence 3F|
|00001460| 20 2e 20 2e 20 2e 22 0d | 0d 3c 47 65 6f 72 64 69 | . . .".|.<Geordi|
|00001470| 2c 20 65 78 63 69 74 65 | 64 3e 20 20 22 57 61 69 |, excite|d> "Wai|
|00001480| 74 2c 20 43 61 70 74 61 | 69 6e 2c 20 49 20 6a 75 |t, Capta|in, I ju|
|00001490| 73 74 20 64 65 74 65 63 | 74 65 64 20 74 68 61 74 |st detec|ted that|
|000014a0| 20 74 68 65 69 72 0d 43 | 50 55 20 63 61 70 61 63 | their.C|PU capac|
|000014b0| 69 74 79 20 68 61 73 20 | 73 75 64 64 65 6e 6c 79 |ity has |suddenly|
|000014c0| 20 64 72 6f 70 70 65 64 | 20 74 6f 20 30 25 21 22 | dropped| to 0%!"|
|000014d0| 0d 0d 3c 50 69 63 61 72 | 64 3e 20 22 44 61 74 61 |..<Picar|d> "Data|
|000014e0| 2c 20 77 68 61 74 20 64 | 6f 20 79 6f 75 72 20 73 |, what d|o your s|
|000014f0| 63 61 6e 6e 65 72 73 20 | 73 68 6f 77 3f 22 0d 0d |canners |show?"..|
|00001500| 3c 44 61 74 61 3e 20 22 | 41 70 70 61 72 65 6e 74 |<Data> "|Apparent|
|00001510| 6c 79 20 74 68 65 20 42 | 6f 72 67 20 68 61 76 65 |ly the B|org have|
|00001520| 20 66 6f 75 6e 64 20 74 | 68 65 20 69 6e 74 65 72 | found t|he inter|
|00001530| 6e 61 6c 0d 27 57 69 6e | 64 6f 77 73 27 20 6d 6f |nal.'Win|dows' mo|
|00001540| 64 75 6c 65 20 6e 61 6d | 65 64 20 27 73 6f 6c 69 |dule nam|ed 'soli|
|00001550| 74 61 69 72 65 27 20 61 | 6e 64 20 69 74 20 68 61 |taire' a|nd it ha|
|00001560| 73 20 75 73 65 64 20 75 | 70 20 61 6c 6c 0d 74 68 |s used u|p all.th|
|00001570| 65 20 43 50 55 20 63 61 | 70 61 63 69 74 79 2e 22 |e CPU ca|pacity."|
|00001580| 0d 0d 3c 50 69 63 61 72 | 64 3e 20 22 4c 65 74 27 |..<Picar|d> "Let'|
|00001590| 73 20 77 61 69 74 20 61 | 6e 64 20 73 65 65 20 68 |s wait a|nd see h|
|000015a0| 6f 77 20 6c 6f 6e 67 20 | 74 68 69 73 20 27 73 6f |ow long |this 'so|
|000015b0| 6c 69 74 61 69 72 65 27 | 20 63 61 6e 0d 72 65 64 |litaire'| can.red|
|000015c0| 75 63 65 20 74 68 65 69 | 72 20 66 75 6e 63 74 69 |uce thei|r functi|
|000015d0| 6f 6e 61 6c 69 74 79 2e | 22 0d 0d 3c 2e 20 2e 20 |onality.|"..<. . |
|000015e0| 2e 20 54 77 6f 20 68 6f | 75 72 73 20 70 61 73 73 |. Two ho|urs pass|
|000015f0| 20 2e 20 2e 20 2e 3e 0d | 0d 3c 52 69 6b 65 72 3e | . . .>.|.<Riker>|
|00001600| 20 22 47 65 6f 72 64 69 | 2c 20 77 68 61 74 27 73 | "Geordi|, what's|
|00001610| 20 74 68 65 20 73 74 61 | 74 75 73 20 6f 66 20 74 | the sta|tus of t|
|00001620| 68 65 20 42 6f 72 67 3f | 22 0d 0d 3c 47 65 6f 72 |he Borg?|"..<Geor|
|00001630| 64 69 3e 20 22 41 73 20 | 65 78 70 65 63 74 65 64 |di> "As |expected|
|00001640| 20 74 68 65 20 42 6f 72 | 67 20 61 72 65 20 61 74 | the Bor|g are at|
|00001650| 74 65 6d 70 74 69 6e 67 | 20 74 6f 20 72 65 2d 0d |tempting| to re-.|
|00001660| 65 6e 67 69 6e 65 65 72 | 20 74 6f 20 63 6f 6d 70 |engineer| to comp|
|00001670| 65 6e 73 61 74 65 20 66 | 6f 72 20 69 6e 63 72 65 |ensate f|or incre|
|00001680| 61 73 65 64 20 43 50 55 | 20 61 6e 64 20 73 74 6f |ased CPU| and sto|
|00001690| 72 61 67 65 0d 64 65 6d | 61 6e 64 73 2c 20 62 75 |rage.dem|ands, bu|
|000016a0| 74 20 65 61 63 68 20 74 | 69 6d 65 20 74 68 65 79 |t each t|ime they|
|000016b0| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 20 69 6e | success|fully in|
|000016c0| 63 72 65 61 73 65 20 72 | 65 73 6f 75 72 63 65 73 |crease r|esources|
|000016d0| 0d 49 20 68 61 76 65 20 | 73 65 74 20 75 70 20 6f |.I have |set up o|
|000016e0| 75 72 20 63 6c 6f 73 65 | 73 74 20 64 65 65 70 20 |ur close|st deep |
|000016f0| 73 70 61 63 65 20 6d 6f | 6e 69 74 6f 72 20 62 65 |space mo|nitor be|
|00001700| 61 63 6f 6e 20 74 6f 0d | 74 72 61 6e 73 6d 69 74 |acon to.|transmit|
|00001710| 20 6d 6f 72 65 20 27 57 | 69 6e 64 6f 77 73 27 20 | more 'W|indows' |
|00001720| 6d 6f 64 75 6c 65 73 20 | 66 72 6f 6d 20 73 6f 6d |modules |from som|
|00001730| 65 74 68 69 6e 67 20 63 | 61 6c 6c 65 64 0d 74 68 |ething c|alled.th|
|00001740| 65 20 27 4d 69 63 72 6f | 73 6f 66 74 20 66 75 6e |e 'Micro|soft fun|
|00001750| 2d 70 61 63 6b 2e 27 22 | 0d 0d 3c 50 69 63 61 72 |-pack.'"|..<Picar|
|00001760| 64 3e 20 22 48 6f 77 20 | 6d 75 63 68 20 74 69 6d |d> "How |much tim|
|00001770| 65 20 77 69 6c 6c 20 74 | 68 61 74 20 62 75 79 20 |e will t|hat buy |
|00001780| 75 73 3f 22 0d 0d 3c 44 | 61 74 61 3e 20 22 43 75 |us?"..<D|ata> "Cu|
|00001790| 72 72 65 6e 74 20 42 6f | 72 67 20 73 6f 6c 75 74 |rrent Bo|rg solut|
|000017a0| 69 6f 6e 20 72 61 74 65 | 73 20 61 6c 6c 6f 77 20 |ion rate|s allow |
|000017b0| 6d 65 20 74 6f 20 70 72 | 65 64 69 63 74 20 61 6e |me to pr|edict an|
|000017c0| 0d 69 6e 74 65 72 65 73 | 74 20 74 69 6d 65 20 73 |.interes|t time s|
|000017d0| 70 61 6e 20 6f 66 20 36 | 20 6d 6f 72 65 20 68 6f |pan of 6| more ho|
|000017e0| 75 72 73 2e 22 0d 0d 3c | 47 65 6f 72 64 69 3e 20 |urs."..<|Geordi> |
|000017f0| 22 43 61 70 74 61 69 6e | 2c 20 61 6e 6f 74 68 65 |"Captain|, anothe|
|00001800| 72 20 76 65 73 73 65 6c | 20 68 61 73 20 65 6e 74 |r vessel| has ent|
|00001810| 65 72 65 64 20 6f 75 72 | 20 73 65 63 74 6f 72 2e |ered our| sector.|
|00001820| 22 0d 0d 3c 50 69 63 61 | 72 64 3e 20 22 49 64 65 |"..<Pica|rd> "Ide|
|00001830| 6e 74 69 66 79 2e 22 0d | 0d 3c 44 61 74 61 3e 20 |ntify.".|.<Data> |
|00001840| 22 49 74 20 61 70 70 65 | 61 72 73 20 74 6f 20 68 |"It appe|ars to h|
|00001850| 61 76 65 20 6d 61 72 6b | 69 6e 67 73 20 73 69 6d |ave mark|ings sim|
|00001860| 69 6c 61 72 20 74 6f 20 | 74 68 65 0d 27 4d 69 63 |ilar to |the.'Mic|
|00001870| 72 6f 73 6f 66 74 27 20 | 6c 6f 67 6f 2e 22 0d 0d |rosoft' |logo."..|
|00001880| 3c 4f 76 65 72 20 74 68 | 65 20 73 70 65 61 6b 65 |<Over th|e speake|
|00001890| 72 73 3e 20 22 54 48 49 | 53 20 49 53 20 41 44 4d |rs> "THI|S IS ADM|
|000018a0| 49 52 41 4c 20 42 49 4c | 4c 20 47 41 54 45 53 0d |IRAL BIL|L GATES.|
|000018b0| 4f 46 20 54 48 45 20 4d | 49 43 52 4f 53 4f 46 54 |OF THE M|ICROSOFT|
|000018c0| 20 46 4c 41 47 53 48 49 | 50 20 4d 4f 4e 4f 50 4f | FLAGSHI|P MONOPO|
|000018d0| 4c 59 2e 20 20 57 45 0d | 48 41 56 45 20 50 4f 53 |LY. WE.|HAVE POS|
|000018e0| 49 54 49 56 45 20 43 4f | 4e 46 49 52 4d 41 54 49 |ITIVE CO|NFIRMATI|
|000018f0| 4f 4e 20 4f 46 20 55 4e | 2d 0d 52 45 47 49 53 54 |ON OF UN|-.REGIST|
|00001900| 45 52 45 44 20 53 4f 46 | 54 57 41 52 45 20 49 4e |ERED SOF|TWARE IN|
|00001910| 20 54 48 49 53 20 53 45 | 43 54 4f 52 2e 0d 53 55 | THIS SE|CTOR..SU|
|00001920| 52 52 45 4e 44 45 52 20 | 41 4c 4c 20 41 53 53 45 |RRENDER |ALL ASSE|
|00001930| 54 53 20 41 4e 44 20 57 | 45 20 43 41 4e 20 41 56 |TS AND W|E CAN AV|
|00001940| 4f 49 44 20 41 4e 59 0d | 54 52 4f 55 42 4c 45 2e |OID ANY.|TROUBLE.|
|00001950| 20 20 59 4f 55 20 48 41 | 56 45 20 54 45 4e 20 53 | YOU HA|VE TEN S|
|00001960| 45 43 4f 4e 44 53 2e 22 | 0d 0d 3c 44 61 74 61 3e |ECONDS."|..<Data>|
|00001970| 20 22 54 68 65 20 61 6c | 69 65 6e 20 73 68 69 70 | "The al|ien ship|
|00001980| 20 68 61 73 20 6a 75 73 | 74 20 6f 70 65 6e 65 64 | has jus|t opened|
|00001990| 20 69 74 73 20 66 6f 72 | 77 61 72 64 20 68 61 74 | its for|ward hat|
|000019a0| 63 68 65 73 0d 61 6e 64 | 20 72 65 6c 65 61 73 65 |ches.and| release|
|000019b0| 64 20 74 68 6f 75 73 61 | 6e 64 73 20 6f 66 20 68 |d thousa|nds of h|
|000019c0| 75 6d 61 6e 6f 69 64 20 | 73 68 61 70 65 64 20 6f |umanoid |shaped o|
|000019d0| 62 6a 65 63 74 73 2e 22 | 0d 0d 3c 50 69 63 61 72 |bjects."|..<Picar|
|000019e0| 64 3e 20 22 4d 61 67 6e | 69 66 79 20 66 6f 72 77 |d> "Magn|ify forw|
|000019f0| 61 72 64 20 76 69 65 77 | 65 72 20 6f 6e 20 74 68 |ard view|er on th|
|00001a00| 65 20 61 6c 69 65 6e 20 | 63 72 61 66 74 2e 22 0d |e alien |craft.".|
|00001a10| 0d 3c 52 69 6b 65 72 3e | 20 22 47 6f 6f 64 20 47 |.<Riker>| "Good G|
|00001a20| 6f 64 20 43 61 70 74 61 | 69 6e 21 20 20 54 68 6f |od Capta|in! Tho|
|00001a30| 73 65 20 61 72 65 20 68 | 75 6d 61 6e 73 20 66 6c |se are h|umans fl|
|00001a40| 6f 61 74 69 6e 67 0d 73 | 74 72 61 69 67 68 74 20 |oating.s|traight |
|00001a50| 74 6f 77 61 72 64 20 74 | 68 65 20 42 6f 72 67 20 |toward t|he Borg |
|00001a60| 73 68 69 70 20 77 69 74 | 68 20 6e 6f 20 6c 69 66 |ship wit|h no lif|
|00001a70| 65 20 73 75 70 70 6f 72 | 74 20 73 75 69 74 73 21 |e suppor|t suits!|
|00001a80| 0d 48 6f 77 20 63 61 6e | 20 74 68 65 79 20 73 75 |.How can| they su|
|00001a90| 72 76 69 76 65 20 74 68 | 65 20 74 6f 72 74 75 72 |rvive th|e tortur|
|00001aa0| 65 73 20 6f 66 20 64 65 | 65 70 20 73 70 61 63 65 |es of de|ep space|
|00001ab0| 3f 21 22 0d 0d 3c 44 61 | 74 61 3e 20 22 49 20 64 |?!"..<Da|ta> "I d|
|00001ac0| 6f 20 6e 6f 74 20 62 65 | 6c 69 65 76 65 20 74 68 |o not be|lieve th|
|00001ad0| 61 74 20 74 68 6f 73 65 | 20 61 72 65 20 68 75 6d |at those| are hum|
|00001ae0| 61 6e 73 20 73 69 72 3b | 20 69 66 20 79 6f 75 20 |ans sir;| if you |
|00001af0| 77 69 6c 6c 0d 6c 6f 6f | 6b 20 63 6c 6f 73 65 72 |will.loo|k closer|
|00001b00| 2c 20 49 20 62 65 6c 69 | 65 76 65 20 79 6f 75 20 |, I beli|eve you |
|00001b10| 77 69 6c 6c 20 73 65 65 | 20 74 68 61 74 20 74 68 |will see| that th|
|00001b20| 65 79 20 61 72 65 20 63 | 61 72 72 79 69 6e 67 0d |ey are c|arrying.|
|00001b30| 73 6f 6d 65 74 68 69 6e | 67 20 72 65 63 6f 67 6e |somethin|g recogn|
|00001b40| 69 7a 65 64 20 69 6e 20 | 74 68 65 20 74 77 65 6e |ized in |the twen|
|00001b50| 74 79 2d 66 69 72 73 74 | 20 63 65 6e 74 75 72 79 |ty-first| century|
|00001b60| 20 61 73 20 64 6f 65 2d | 73 6b 69 6e 0d 6c 65 61 | as doe-|skin.lea|
|00001b70| 74 68 65 72 20 62 72 69 | 65 66 63 61 73 65 73 2c |ther bri|efcases,|
|00001b80| 20 61 6e 64 20 77 65 61 | 72 69 6e 67 20 41 72 6d | and wea|ring Arm|
|00001b90| 61 6e 69 20 73 75 69 74 | 73 2e 22 0d 0d 3c 52 69 |ani suit|s."..<Ri|
|00001ba0| 6b 65 72 20 61 6e 64 20 | 50 69 63 61 72 64 20 74 |ker and |Picard t|
|00001bb0| 6f 67 65 74 68 65 72 20 | 68 6f 72 72 69 66 69 65 |ogether |horrifie|
|00001bc0| 64 3e 20 22 4c 61 77 79 | 65 72 73 21 21 22 0d 0d |d> "Lawy|ers!!"..|
|00001bd0| 3c 47 65 6f 72 64 69 3e | 20 22 49 74 20 63 61 6e |<Geordi>| "It can|
|00001be0| 27 74 20 62 65 2e 20 20 | 41 6c 6c 20 74 68 65 20 |'t be. |All the |
|00001bf0| 6c 61 77 79 65 72 73 20 | 77 65 72 65 20 72 6f 75 |lawyers |were rou|
|00001c00| 6e 64 65 64 20 75 70 20 | 61 6e 64 0d 73 65 6e 74 |nded up |and.sent|
|00001c10| 20 68 75 72 74 6c 69 6e | 67 20 69 6e 74 6f 20 74 | hurtlin|g into t|
|00001c20| 68 65 20 73 75 6e 20 69 | 6e 20 32 30 31 37 20 64 |he sun i|n 2017 d|
|00001c30| 75 72 69 6e 67 20 74 68 | 65 20 67 72 65 61 74 20 |uring th|e great |
|00001c40| 61 77 61 6b 65 6e 2d 0d | 69 6e 67 2e 22 0d 0d 3c |awaken-.|ing."..<|
|00001c50| 44 61 74 61 3e 20 22 54 | 72 75 65 2c 20 62 75 74 |Data> "T|rue, but|
|00001c60| 20 61 70 70 61 72 65 6e | 74 6c 79 20 73 6f 6d 65 | apparen|tly some|
|00001c70| 20 6d 75 73 74 20 68 61 | 76 65 20 73 75 72 76 69 | must ha|ve survi|
|00001c80| 76 65 64 2e 22 0d 0d 3c | 52 69 6b 65 72 3e 20 22 |ved."..<|Riker> "|
|00001c90| 54 68 65 79 20 68 61 76 | 65 20 73 75 72 72 6f 75 |They hav|e surrou|
|00001ca0| 6e 64 65 64 20 74 68 65 | 20 42 6f 72 67 20 73 68 |nded the| Borg sh|
|00001cb0| 69 70 20 61 6e 64 20 61 | 72 65 0d 63 6f 76 65 72 |ip and a|re.cover|
|00001cc0| 69 6e 67 20 69 74 20 77 | 69 74 68 20 61 6c 6c 20 |ing it w|ith all |
|00001cd0| 74 79 70 65 73 20 6f 66 | 20 70 61 70 65 72 73 2e |types of| papers.|
|00001ce0| 22 0d 0d 3c 44 61 74 61 | 3e 20 22 49 20 62 65 6c |"..<Data|> "I bel|
|00001cf0| 69 65 76 65 20 74 68 61 | 74 20 69 73 20 6b 6e 6f |ieve tha|t is kno|
|00001d00| 77 6e 20 69 6e 20 61 6e | 63 69 65 6e 74 20 76 65 |wn in an|cient ve|
|00001d10| 72 6e 61 63 75 6c 61 72 | 20 61 73 20 27 72 65 64 |rnacular| as 'red|
|00001d20| 0d 74 61 70 65 2e 27 20 | 20 49 74 20 6f 66 74 65 |.tape.' | It ofte|
|00001d30| 6e 20 70 72 6f 76 65 73 | 20 66 61 74 61 6c 2e 0d |n proves| fatal..|
|00001d40| 0d 3c 52 69 6b 65 72 3e | 20 22 54 68 65 79 27 72 |.<Riker>| "They'r|
|00001d50| 65 20 74 65 61 72 69 6e | 67 20 74 68 65 20 42 6f |e tearin|g the Bo|
|00001d60| 72 67 20 74 6f 20 70 69 | 65 63 65 73 21 22 0d 0d |rg to pi|eces!"..|
|00001d70| 3c 50 69 63 61 72 64 3e | 20 22 54 75 72 6e 20 6f |<Picard>| "Turn o|
|00001d80| 66 66 20 74 68 65 20 6d | 6f 6e 69 74 6f 72 73 2e |ff the m|onitors.|
|00001d90| 20 20 49 20 63 61 6e 27 | 74 20 73 74 61 6e 64 20 | I can'|t stand |
|00001da0| 74 6f 20 77 61 74 63 68 | 2e 20 20 4e 6f 74 0d 65 |to watch|. Not.e|
|00001db0| 76 65 6e 20 74 68 65 20 | 42 6f 72 67 20 64 65 73 |ven the |Borg des|
|00001dc0| 65 72 76 65 20 74 68 61 | 74 2e 22 0d 0d 0d 0d 20 |erve tha|t.".... |
|00001dd0| 20 44 69 73 63 6c 61 69 | 6d 65 72 3a 20 4a 75 73 | Disclai|mer: Jus|
|00001de0| 74 20 6d 79 20 6f 70 69 | 6e 69 6f 6e 2e 0d 20 20 |t my opi|nion.. |
|00001df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e10| 20 20 5f 2f 20 20 20 5f | 2f 20 20 5f 2f 20 20 5f | _/ _|/ _/ _|
|00001e20| 2f 5f 2f 5f 2f 20 20 20 | 5f 2f 20 20 20 5f 2f 20 |/_/_/ |_/ _/ |
|00001e30| 20 0d 20 20 20 20 20 49 | 6e 74 65 72 65 74 3a 20 | . I|nteret: |
|00001e40| 6e 69 63 6b 40 70 69 74 | 74 2e 65 64 75 20 20 20 |nick@pit|t.edu |
|00001e50| 20 20 20 20 20 5f 2f 5f | 2f 20 5f 2f 20 20 5f 2f | _/_|/ _/ _/|
|00001e60| 20 20 5f 2f 20 20 20 5f | 2f 20 20 5f 2f 5f 2f 5f | _/ _|/ _/_/_|
|00001e70| 2f 20 20 20 20 0d 20 20 | 20 20 20 20 65 57 6f 72 |/ . | eWor|
|00001e80| 6c 64 3a 20 6e 69 63 6b | 20 20 20 20 20 20 20 20 |ld: nick| |
|00001e90| 20 20 20 20 20 20 20 20 | 5f 2f 20 5f 2f 5f 2f 20 | |_/ _/_/ |
|00001ea0| 20 5f 2f 20 20 5f 2f 20 | 20 20 20 20 20 20 5f 2f | _/ _/ | _/|
|00001eb0| 20 5f 2f 20 20 20 20 20 | 20 0d 20 20 20 20 20 20 | _/ | . |
|00001ec0| 20 20 20 43 49 53 3a 20 | 37 31 32 33 32 2c 37 36 | CIS: |71232,76|
|00001ed0| 36 20 20 20 20 20 20 20 | 20 20 20 5f 2f 20 20 20 |6 | _/ |
|00001ee0| 5f 2f 20 20 5f 2f 20 20 | 20 5f 2f 5f 2f 5f 2f 20 |_/ _/ | _/_/_/ |
|00001ef0| 20 5f 2f 20 20 20 5f 2f | 20 20 20 20 20 0d 20 20 | _/ _/| . |
|00001f00| 20 20 0d 20 20 20 20 20 | 20 20 20 20 20 20 22 53 | . | "S|
|00001f10| 63 69 65 6e 63 65 20 69 | 73 20 6e 6f 74 68 69 6e |cience i|s nothin|
|00001f20| 67 20 62 75 74 20 70 65 | 72 63 65 70 74 69 6f 6e |g but pe|rception|
|00001f30| 22 20 2d 20 50 6c 61 74 | 6f 0d 0d 2d 2d 2d 2d 2d |" - Plat|o..-----|
|00001f40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f50| 2d 2d 2d 2d 2d 2d 0d 0d | 3e 46 72 6f 6d 20 6b 6f |------..|>From ko|
|00001f60| 63 68 65 72 40 6c 74 73 | 2e 73 65 6c 2e 61 6c 63 |cher@lts|.sel.alc|
|00001f70| 61 74 65 6c 2e 64 65 20 | 28 48 61 72 74 6d 75 74 |atel.de |(Hartmut|
|00001f80| 20 4b 6f 63 68 65 72 20 | 55 53 2f 45 53 41 20 36 | Kocher |US/ESA 6|
|00001f90| 30 2f 31 4c 2f 32 3f 20 | 23 35 36 32 39 29 0d 53 |0/1L/2? |#5629).S|
|00001fa0| 75 62 6a 65 63 74 3a 20 | 41 70 70 6c 65 53 63 72 |ubject: |AppleScr|
|00001fb0| 69 70 74 3a 20 65 76 65 | 6e 74 20 74 69 6d 65 73 |ipt: eve|nt times|
|00001fc0| 20 6f 75 74 0d 44 61 74 | 65 3a 20 4d 6f 6e 2c 20 | out.Dat|e: Mon, |
|00001fd0| 32 32 20 41 75 67 20 39 | 34 20 30 38 3a 33 33 3a |22 Aug 9|4 08:33:|
|00001fe0| 33 35 20 47 4d 54 0d 4f | 72 67 61 6e 69 7a 61 74 |35 GMT.O|rganizat|
|00001ff0| 69 6f 6e 3a 20 53 45 4c | 2d 41 6c 63 61 74 65 6c |ion: SEL|-Alcatel|
|00002000| 20 4c 54 53 20 44 65 70 | 74 2e 20 55 53 2f 45 53 | LTS Dep|t. US/ES|
|00002010| 0d 0d 49 27 76 65 20 77 | 72 69 74 74 65 6e 20 61 |..I've w|ritten a|
|00002020| 20 73 6d 61 6c 6c 20 41 | 70 70 6c 65 53 63 72 69 | small A|ppleScri|
|00002030| 70 74 2c 20 74 68 61 74 | 20 63 6f 70 69 65 73 20 |pt, that| copies |
|00002040| 61 20 66 65 77 20 66 6f | 6c 64 65 72 73 20 61 72 |a few fo|lders ar|
|00002050| 6f 75 6e 64 0d 75 73 69 | 6e 67 20 74 68 65 20 73 |ound.usi|ng the s|
|00002060| 63 72 69 70 74 61 62 6c | 65 20 46 69 6e 64 65 72 |criptabl|e Finder|
|00002070| 2e 20 4d 79 20 70 72 6f | 62 6c 65 6d 20 69 73 20 |. My pro|blem is |
|00002080| 74 68 61 74 20 69 66 20 | 6f 6e 65 20 6f 66 20 74 |that if |one of t|
|00002090| 68 65 73 65 20 66 6f 6c | 64 65 72 73 0d 68 6f 6c |hese fol|ders.hol|
|000020a0| 64 73 20 6d 61 6e 79 20 | 66 69 6c 65 73 2c 20 74 |ds many |files, t|
|000020b0| 68 65 20 72 65 70 6c 79 | 20 66 72 6f 6d 20 74 68 |he reply| from th|
|000020c0| 65 20 46 69 6e 64 65 72 | 20 74 61 6b 65 73 20 74 |e Finder| takes t|
|000020d0| 6f 6f 20 6c 6f 6e 67 20 | 61 6e 64 20 74 68 65 0d |oo long |and the.|
|000020e0| 72 65 70 6c 79 20 74 69 | 6d 65 73 20 6f 75 74 20 |reply ti|mes out |
|000020f0| 28 61 62 6f 72 74 69 6e | 67 20 74 68 65 20 73 63 |(abortin|g the sc|
|00002100| 72 69 70 74 20 3a 2d 28 | 20 29 2e 0d 0d 48 6f 77 |ript :-(| )...How|
|00002110| 20 63 61 6e 20 49 20 73 | 65 74 20 74 68 65 20 74 | can I s|et the t|
|00002120| 69 6d 65 6f 75 74 20 76 | 61 6c 75 65 2c 20 73 6f |imeout v|alue, so|
|00002130| 20 6d 79 20 73 63 72 69 | 70 74 20 69 73 20 77 69 | my scri|pt is wi|
|00002140| 6c 6c 69 6e 67 20 74 6f | 20 77 61 69 74 0d 6c 6f |lling to| wait.lo|
|00002150| 6e 67 65 72 20 66 72 6f | 20 61 20 72 65 70 6c 79 |nger fro| a reply|
|00002160| 3f 0d 0d 54 68 61 6e 6b | 73 20 66 6f 72 20 79 6f |?..Thank|s for yo|
|00002170| 75 72 20 73 75 67 67 65 | 73 74 69 6f 6e 73 2e 0d |ur sugge|stions..|
|00002180| 0d 2d 2d 20 0d 2b 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.-- .+==|========|
|00002190| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000021a0| 3d 3d 3d 3d 7c 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |====|===|========|
|000021b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000021c0| 3d 3d 3d 2b 0d 7c 20 48 | 61 72 74 6d 75 74 20 4b |===+.| H|artmut K|
|000021d0| 6f 63 68 65 72 20 20 20 | 20 20 20 20 20 20 20 20 |ocher | |
|000021e0| 20 20 20 20 7c 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|000021f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002200| 20 20 20 7c 0d 7c 20 54 | 65 63 68 6e 69 63 61 6c | |.| T|echnical|
|00002210| 20 43 6f 6e 73 75 6c 74 | 61 6e 74 20 20 20 20 20 | Consult|ant |
|00002220| 20 20 20 20 7c 20 41 6c | 6c 20 6f 70 69 6e 69 6f | | Al|l opinio|
|00002230| 6e 73 20 65 78 70 72 65 | 73 73 65 64 20 68 65 72 |ns expre|ssed her|
|00002240| 65 20 20 7c 0d 7c 20 52 | 61 74 69 6f 6e 61 6c 20 |e |.| R|ational |
|00002250| 47 6d 62 48 20 20 20 20 | 20 20 20 20 20 20 20 20 |GmbH | |
|00002260| 20 20 20 20 7c 20 61 72 | 65 20 6d 79 20 6f 77 6e | | ar|e my own|
|00002270| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002280| 20 20 20 7c 0d 7c 20 52 | 6f 73 65 6e 73 74 72 61 | |.| R|osenstra|
|00002290| 73 73 65 20 37 20 20 20 | 20 20 20 20 20 20 20 20 |sse 7 | |
|000022a0| 20 20 20 20 7c 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|000022b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022c0| 20 20 20 7c 0d 7c 20 38 | 32 30 34 39 20 50 75 6c | |.| 8|2049 Pul|
|000022d0| 6c 61 63 68 20 69 6d 20 | 49 73 61 72 74 61 6c 20 |lach im |Isartal |
|000022e0| 20 20 20 20 7c 20 49 20 | 6b 6e 6f 77 20 79 6f 75 | | I |know you|
|000022f0| 20 67 75 65 73 73 65 64 | 20 69 74 2c 20 20 20 20 | guessed| it, |
|00002300| 20 20 20 7c 0d 7c 20 47 | 65 72 6d 61 6e 79 20 20 | |.| G|ermany |
|00002310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002320| 20 20 20 20 7c 20 62 75 | 74 20 69 74 20 6b 65 65 | | bu|t it kee|
|00002330| 70 73 20 6d 79 20 6c 61 | 77 79 65 72 20 68 61 70 |ps my la|wyer hap|
|00002340| 70 79 2e 7c 0d 7c 20 45 | 6d 61 69 6c 3a 20 68 77 |py.|.| E|mail: hw|
|00002350| 6b 40 72 61 74 69 6f 6e | 61 6c 2e 63 6f 6d 20 20 |k@ration|al.com |
|00002360| 20 20 20 20 7c 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|00002370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002380| 20 20 20 7c 0d 2b 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | |.+==|========|
|00002390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000023a0| 3d 3d 3d 3d 7c 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |====|===|========|
|000023b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000023c0| 3d 3d 3d 2b 0d 0d 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |===+..++|++++++++|
|000023d0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000023e0| 2b 0d 0d 3e 46 72 6f 6d | 20 64 6d 63 6c 65 6f 64 |+..>From| dmcleod|
|000023f0| 40 68 70 62 2e 68 77 63 | 2e 63 61 20 28 44 2e 41 |@hpb.hwc|.ca (D.A|
|00002400| 2e 20 4d 63 4c 65 6f 64 | 29 0d 44 61 74 65 3a 20 |. McLeod|).Date: |
|00002410| 32 32 20 41 75 67 20 31 | 39 39 34 20 31 33 3a 33 |22 Aug 1|994 13:3|
|00002420| 32 3a 34 32 20 47 4d 54 | 0d 4f 72 67 61 6e 69 7a |2:42 GMT|.Organiz|
|00002430| 61 74 69 6f 6e 3a 20 48 | 65 61 6c 74 68 20 43 61 |ation: H|ealth Ca|
|00002440| 6e 61 64 61 0d 0d 48 61 | 72 74 6d 75 74 20 4b 6f |nada..Ha|rtmut Ko|
|00002450| 63 68 65 72 20 55 53 2f | 45 53 41 20 36 30 2f 31 |cher US/|ESA 60/1|
|00002460| 4c 2f 32 3f 20 23 35 36 | 32 39 20 28 6b 6f 63 68 |L/2? #56|29 (koch|
|00002470| 65 72 40 6c 74 73 2e 73 | 65 6c 2e 61 6c 63 61 74 |er@lts.s|el.alcat|
|00002480| 65 6c 2e 64 65 29 20 77 | 72 6f 74 65 3a 0d 3a 20 |el.de) w|rote:.: |
|00002490| 48 6f 77 20 63 61 6e 20 | 49 20 73 65 74 20 74 68 |How can |I set th|
|000024a0| 65 20 74 69 6d 65 6f 75 | 74 20 76 61 6c 75 65 2c |e timeou|t value,|
|000024b0| 20 73 6f 20 6d 79 20 73 | 63 72 69 70 74 20 69 73 | so my s|cript is|
|000024c0| 20 77 69 6c 6c 69 6e 67 | 20 74 6f 20 77 61 69 74 | willing| to wait|
|000024d0| 0d 3a 20 6c 6f 6e 67 65 | 72 20 66 72 6f 20 61 20 |.: longe|r fro a |
|000024e0| 72 65 70 6c 79 3f 0d 0d | 77 69 74 68 20 74 69 6d |reply?..|with tim|
|000024f0| 65 6f 75 74 20 6f 66 20 | 23 23 23 23 20 73 65 63 |eout of |#### sec|
|00002500| 6f 6e 64 73 0d 20 20 20 | 20 20 2e 0d 20 20 20 20 |onds. | .. |
|00002510| 20 2e 0d 20 20 20 20 20 | 2e 0d 65 6e 64 20 74 69 | .. |..end ti|
|00002520| 6d 65 6f 75 74 0d 0d 2b | 2b 2b 2b 2b 2b 2b 2b 2b |meout..+|++++++++|
|00002530| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00002540| 2b 2b 0d 0d 3e 46 72 6f | 6d 20 65 6e 67 65 6c 68 |++..>Fro|m engelh|
|00002550| 61 72 40 62 67 61 2e 63 | 6f 6d 20 28 4d 69 63 68 |ar@bga.c|om (Mich|
|00002560| 61 65 6c 20 45 6e 67 65 | 6c 68 61 72 74 29 0d 44 |ael Enge|lhart).D|
|00002570| 61 74 65 3a 20 32 32 20 | 41 75 67 20 31 39 39 34 |ate: 22 |Aug 1994|
|00002580| 20 31 35 3a 33 38 3a 30 | 39 20 47 4d 54 0d 4f 72 | 15:38:0|9 GMT.Or|
|00002590| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 41 70 70 6c |ganizati|on: Appl|
|000025a0| 65 20 54 72 61 76 65 6c | 0d 0d 49 6e 20 61 72 74 |e Travel|..In art|
|000025b0| 69 63 6c 65 20 3c 31 39 | 39 34 41 75 67 32 32 2e |icle <19|94Aug22.|
|000025c0| 30 38 33 33 33 35 2e 32 | 35 38 35 33 40 6c 74 73 |083335.2|5853@lts|
|000025d0| 2e 73 65 6c 2e 61 6c 63 | 61 74 65 6c 2e 64 65 3e |.sel.alc|atel.de>|
|000025e0| 2c 0d 6b 6f 63 68 65 72 | 40 6c 74 73 2e 73 65 6c |,.kocher|@lts.sel|
|000025f0| 2e 61 6c 63 61 74 65 6c | 2e 64 65 20 28 48 61 72 |.alcatel|.de (Har|
|00002600| 74 6d 75 74 20 4b 6f 63 | 68 65 72 20 55 53 2f 45 |tmut Koc|her US/E|
|00002610| 53 41 20 36 30 2f 31 4c | 2f 32 3f 20 23 35 36 32 |SA 60/1L|/2? #562|
|00002620| 39 29 20 77 72 6f 74 65 | 3a 0d 0d 3e 20 49 27 76 |9) wrote|:..> I'v|
|00002630| 65 20 77 72 69 74 74 65 | 6e 20 61 20 73 6d 61 6c |e writte|n a smal|
|00002640| 6c 20 41 70 70 6c 65 53 | 63 72 69 70 74 2c 20 74 |l AppleS|cript, t|
|00002650| 68 61 74 20 63 6f 70 69 | 65 73 20 61 20 66 65 77 |hat copi|es a few|
|00002660| 20 66 6f 6c 64 65 72 73 | 20 61 72 6f 75 6e 64 0d | folders| around.|
|00002670| 3e 20 75 73 69 6e 67 20 | 74 68 65 20 73 63 72 69 |> using |the scri|
|00002680| 70 74 61 62 6c 65 20 46 | 69 6e 64 65 72 2e 20 4d |ptable F|inder. M|
|00002690| 79 20 70 72 6f 62 6c 65 | 6d 20 69 73 20 74 68 61 |y proble|m is tha|
|000026a0| 74 20 69 66 20 6f 6e 65 | 20 6f 66 20 74 68 65 73 |t if one| of thes|
|000026b0| 65 20 66 6f 6c 64 65 72 | 73 0d 3e 20 68 6f 6c 64 |e folder|s.> hold|
|000026c0| 73 20 6d 61 6e 79 20 66 | 69 6c 65 73 2c 20 74 68 |s many f|iles, th|
|000026d0| 65 20 72 65 70 6c 79 20 | 66 72 6f 6d 20 74 68 65 |e reply |from the|
|000026e0| 20 46 69 6e 64 65 72 20 | 74 61 6b 65 73 20 74 6f | Finder |takes to|
|000026f0| 6f 20 6c 6f 6e 67 20 61 | 6e 64 20 74 68 65 0d 3e |o long a|nd the.>|
|00002700| 20 72 65 70 6c 79 20 74 | 69 6d 65 73 20 6f 75 74 | reply t|imes out|
|00002710| 20 28 61 62 6f 72 74 69 | 6e 67 20 74 68 65 20 73 | (aborti|ng the s|
|00002720| 63 72 69 70 74 20 3a 2d | 28 20 29 2e 0d 3e 20 0d |cript :-|( )..> .|
|00002730| 3e 20 48 6f 77 20 63 61 | 6e 20 49 20 73 65 74 20 |> How ca|n I set |
|00002740| 74 68 65 20 74 69 6d 65 | 6f 75 74 20 76 61 6c 75 |the time|out valu|
|00002750| 65 2c 20 73 6f 20 6d 79 | 20 73 63 72 69 70 74 20 |e, so my| script |
|00002760| 69 73 20 77 69 6c 6c 69 | 6e 67 20 74 6f 20 77 61 |is willi|ng to wa|
|00002770| 69 74 0d 3e 20 6c 6f 6e | 67 65 72 20 66 72 6f 20 |it.> lon|ger fro |
|00002780| 61 20 72 65 70 6c 79 3f | 0d 3e 20 0d 3e 20 54 68 |a reply?|.> .> Th|
|00002790| 61 6e 6b 73 20 66 6f 72 | 20 79 6f 75 72 20 73 75 |anks for| your su|
|000027a0| 67 67 65 73 74 69 6f 6e | 73 2e 0d 3e 20 0d 3e 20 |ggestion|s..> .> |
|000027b0| 2d 2d 20 0d 3e 20 2b 3d | 3d 3d 3d 3d 3d 3d 3d 3d |-- .> +=|========|
|000027c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000027d0| 3d 3d 3d 3d 3d 7c 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |=====|==|========|
|000027e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000027f0| 3d 3d 3d 3d 2b 0d 3e 20 | 7c 20 48 61 72 74 6d 75 |====+.> || Hartmu|
|00002800| 74 20 4b 6f 63 68 65 72 | 20 20 20 20 20 20 20 20 |t Kocher| |
|00002810| 20 20 20 20 20 20 20 7c | 20 20 20 20 20 20 20 20 | || |
|00002820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002830| 20 20 20 20 20 20 7c 0d | 3e 20 7c 20 54 65 63 68 | |.|> | Tech|
|00002840| 6e 69 63 61 6c 20 43 6f | 6e 73 75 6c 74 61 6e 74 |nical Co|nsultant|
|00002850| 20 20 20 20 20 20 20 20 | 20 7c 20 41 6c 6c 20 6f | | | All o|
|00002860| 70 69 6e 69 6f 6e 73 20 | 65 78 70 72 65 73 73 65 |pinions |expresse|
|00002870| 64 20 68 65 72 65 20 20 | 7c 0d 3e 20 7c 20 52 61 |d here ||.> | Ra|
|00002880| 74 69 6f 6e 61 6c 20 47 | 6d 62 48 20 20 20 20 20 |tional G|mbH |
|00002890| 20 20 20 20 20 20 20 20 | 20 20 20 7c 20 61 72 65 | | | are|
|000028a0| 20 6d 79 20 6f 77 6e 2e | 20 20 20 20 20 20 20 20 | my own.| |
|000028b0| 20 20 20 20 20 20 20 20 | 20 20 7c 0d 3e 20 7c 20 | | |.> | |
|000028c0| 52 6f 73 65 6e 73 74 72 | 61 73 73 65 20 37 20 20 |Rosenstr|asse 7 |
|000028d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 20 20 | | | |
|000028e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7c 0d 3e 20 | | |.> |
|00002900| 7c 20 38 32 30 34 39 20 | 50 75 6c 6c 61 63 68 20 || 82049 |Pullach |
|00002910| 69 6d 20 49 73 61 72 74 | 61 6c 20 20 20 20 20 7c |im Isart|al ||
|00002920| 20 49 20 6b 6e 6f 77 20 | 79 6f 75 20 67 75 65 73 | I know |you gues|
|00002930| 73 65 64 20 69 74 2c 20 | 20 20 20 20 20 20 7c 0d |sed it, | |.|
|00002940| 3e 20 7c 20 47 65 72 6d | 61 6e 79 20 20 20 20 20 |> | Germ|any |
|00002950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002960| 20 7c 20 62 75 74 20 69 | 74 20 6b 65 65 70 73 20 | | but i|t keeps |
|00002970| 6d 79 20 6c 61 77 79 65 | 72 20 68 61 70 70 79 2e |my lawye|r happy.|
|00002980| 7c 0d 3e 20 7c 20 45 6d | 61 69 6c 3a 20 68 77 6b ||.> | Em|ail: hwk|
|00002990| 40 72 61 74 69 6f 6e 61 | 6c 2e 63 6f 6d 20 20 20 |@rationa|l.com |
|000029a0| 20 20 20 7c 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|000029b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029c0| 20 20 7c 0d 3e 20 2b 3d | 3d 3d 3d 3d 3d 3d 3d 3d | |.> +=|========|
|000029d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000029e0| 3d 3d 3d 3d 3d 7c 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |=====|==|========|
|000029f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002a00| 3d 3d 3d 3d 2b 0d 0d 0d | 48 61 72 74 6d 75 74 2c |====+...|Hartmut,|
|00002a10| 0d 0d 73 69 6d 70 6c 79 | 20 65 6e 63 6c 6f 73 65 |..simply| enclose|
|00002a20| 20 79 6f 75 72 20 72 6f | 75 74 69 6e 65 20 77 69 | your ro|utine wi|
|00002a30| 74 68 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |th the f|ollowing|
|00002a40| 3a 0d 0d 77 69 74 68 20 | 74 69 6d 65 6f 75 74 20 |:..with |timeout |
|00002a50| 6f 66 20 34 30 30 20 73 | 65 63 6f 6e 64 73 20 2d |of 400 s|econds -|
|00002a60| 2d 75 73 65 20 61 6e 79 | 20 76 61 6c 75 65 20 79 |-use any| value y|
|00002a70| 6f 75 20 77 61 6e 74 2c | 20 74 68 65 20 64 65 66 |ou want,| the def|
|00002a80| 61 75 6c 74 20 69 73 20 | 31 32 30 0d 73 65 63 6f |ault is |120.seco|
|00002a90| 6e 64 73 0d 20 09 79 6f | 75 72 20 72 6f 75 74 69 |nds. .yo|ur routi|
|00002aa0| 6e 65 0d 65 6e 64 20 74 | 69 6d 65 6f 75 74 0d 0d |ne.end t|imeout..|
|00002ab0| 4d 69 6b 65 0d 0d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |Mike..--|--------|
|00002ac0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ad0| 2d 0d 0d 3e 46 72 6f 6d | 20 6a 70 65 6b 40 75 6d |-..>From| jpek@um|
|00002ae0| 69 63 68 2e 65 64 75 20 | 28 4a 65 66 66 20 50 65 |ich.edu |(Jeff Pe|
|00002af0| 6b 29 0d 53 75 62 6a 65 | 63 74 3a 20 43 2b 2b 20 |k).Subje|ct: C++ |
|00002b00| 56 69 72 74 75 61 6c 20 | 44 65 73 74 72 75 63 74 |Virtual |Destruct|
|00002b10| 6f 72 20 51 0d 44 61 74 | 65 3a 20 31 39 20 41 75 |or Q.Dat|e: 19 Au|
|00002b20| 67 20 31 39 39 34 20 32 | 32 3a 30 35 3a 30 38 20 |g 1994 2|2:05:08 |
|00002b30| 47 4d 54 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|00002b40| 3a 20 55 20 6f 66 20 4d | 69 63 68 20 28 4d 42 41 |: U of M|ich (MBA|
|00002b50| 29 0d 0d 49 20 77 6f 6e | 64 65 72 20 69 66 20 73 |)..I won|der if s|
|00002b60| 6f 6d 65 6f 6e 65 20 63 | 6f 75 6c 64 20 63 6c 65 |omeone c|ould cle|
|00002b70| 61 72 20 74 68 65 20 61 | 69 72 20 61 72 6f 75 6e |ar the a|ir aroun|
|00002b80| 64 20 6f 75 72 20 6f 66 | 66 69 63 65 20 61 62 6f |d our of|fice abo|
|00002b90| 75 74 20 77 68 79 0d 76 | 69 72 74 75 61 6c 20 64 |ut why.v|irtual d|
|00002ba0| 65 73 74 72 75 63 74 6f | 72 73 20 73 68 6f 75 6c |estructo|rs shoul|
|00002bb0| 64 20 6f 72 20 73 68 6f | 75 6c 64 20 6e 6f 74 20 |d or sho|uld not |
|00002bc0| 62 65 20 75 73 65 64 2e | 20 53 70 65 63 69 66 69 |be used.| Specifi|
|00002bd0| 63 61 6c 6c 79 2c 20 49 | 27 6d 0d 69 6e 74 65 72 |cally, I|'m.inter|
|00002be0| 65 73 74 65 64 20 69 6e | 20 4d 65 74 72 6f 77 65 |ested in| Metrowe|
|00002bf0| 72 6b 73 27 20 63 6f 6d | 70 69 6c 65 72 27 73 20 |rks' com|piler's |
|00002c00| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 2e 0d |implemen|tation..|
|00002c10| 0d 31 29 20 57 68 79 20 | 77 6f 75 6c 64 20 49 20 |.1) Why |would I |
|00002c20| 77 61 6e 74 20 74 6f 2f | 6e 65 65 64 20 74 6f 20 |want to/|need to |
|00002c30| 64 65 63 6c 61 72 65 20 | 61 20 64 65 73 74 72 75 |declare |a destru|
|00002c40| 63 74 6f 72 20 76 69 72 | 74 75 61 6c 3f 0d 32 29 |ctor vir|tual?.2)|
|00002c50| 20 57 68 61 74 20 68 61 | 70 70 65 6e 73 20 69 66 | What ha|ppens if|
|00002c60| 20 49 20 64 6f 6e 27 74 | 3f 0d 0d 54 68 61 6e 6b | I don't|?..Thank|
|00002c70| 73 20 76 65 72 79 20 6d | 75 63 68 21 0d 4a 65 66 |s very m|uch!.Jef|
|00002c80| 66 0d 0d 2d 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |f..- ---|--------|
|00002c90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ca0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002cb0| 0d 4a 65 66 66 20 50 65 | 6b 20 20 20 20 20 20 20 |.Jeff Pe|k |
|00002cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002cd0| 6a 70 65 6b 40 75 6d 69 | 63 68 2e 65 64 75 0d 45 |jpek@umi|ch.edu.E|
|00002ce0| 6d 65 72 61 6c 64 20 49 | 6e 74 65 6c 6c 69 67 65 |merald I|ntellige|
|00002cf0| 6e 63 65 20 2f 20 55 6e | 69 76 65 72 73 69 74 79 |nce / Un|iversity|
|00002d00| 20 6f 66 20 4d 69 63 68 | 69 67 61 6e 0d 0d 2b 2b | of Mich|igan..++|
|00002d10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00002d20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 0d 0d 3e 46 72 6f 6d |++++++++|+..>From|
|00002d30| 20 6d 77 72 6f 6e 40 61 | 6f 6c 2e 63 6f 6d 20 28 | mwron@a|ol.com (|
|00002d40| 4d 57 20 52 6f 6e 29 0d | 44 61 74 65 3a 20 31 39 |MW Ron).|Date: 19|
|00002d50| 20 41 75 67 20 31 39 39 | 34 20 31 39 3a 34 34 3a | Aug 199|4 19:44:|
|00002d60| 30 36 20 2d 30 34 30 30 | 0d 4f 72 67 61 6e 69 7a |06 -0400|.Organiz|
|00002d70| 61 74 69 6f 6e 3a 20 41 | 6d 65 72 69 63 61 20 4f |ation: A|merica O|
|00002d80| 6e 6c 69 6e 65 2c 20 49 | 6e 63 2e 20 28 31 2d 38 |nline, I|nc. (1-8|
|00002d90| 30 30 2d 38 32 37 2d 36 | 33 36 34 29 0d 0d 49 6e |00-827-6|364)..In|
|00002da0| 20 61 72 74 69 63 6c 65 | 20 3c 33 33 33 61 61 6b | article| <333aak|
|00002db0| 24 66 6a 38 40 6c 61 73 | 74 61 63 74 69 6f 6e 68 |$fj8@las|tactionh|
|00002dc0| 65 72 6f 2e 72 73 2e 69 | 74 64 2e 75 6d 69 63 68 |ero.rs.i|td.umich|
|00002dd0| 2e 65 64 75 3e 2c 20 6a | 70 65 6b 40 75 6d 69 63 |.edu>, j|pek@umic|
|00002de0| 68 2e 65 64 75 0d 28 4a | 65 66 66 20 50 65 6b 29 |h.edu.(J|eff Pek)|
|00002df0| 20 77 72 69 74 65 73 3a | 0d 0d 3e 3e 31 29 20 57 | writes:|..>>1) W|
|00002e00| 68 79 20 77 6f 75 6c 64 | 20 49 20 77 61 6e 74 20 |hy would| I want |
|00002e10| 74 6f 2f 6e 65 65 64 20 | 74 6f 20 64 65 63 6c 61 |to/need |to decla|
|00002e20| 72 65 20 61 20 64 65 73 | 74 72 75 63 74 6f 72 20 |re a des|tructor |
|00002e30| 76 69 72 74 75 61 6c 3f | 0d 3e 3e 32 29 20 57 68 |virtual?|.>>2) Wh|
|00002e40| 61 74 20 68 61 70 70 65 | 6e 73 20 69 66 20 49 20 |at happe|ns if I |
|00002e50| 64 6f 6e 27 74 3f 0d 0d | 31 29 20 59 6f 75 20 6e |don't?..|1) You n|
|00002e60| 65 65 64 20 74 6f 20 64 | 65 63 6c 61 72 65 20 61 |eed to d|eclare a|
|00002e70| 20 76 69 72 74 75 61 6c | 20 64 65 73 74 72 75 63 | virtual| destruc|
|00002e80| 74 6f 72 20 77 68 65 6e | 20 79 6f 75 20 68 61 76 |tor when| you hav|
|00002e90| 65 20 61 20 62 61 73 65 | 20 63 6c 61 73 73 2c 0d |e a base| class,.|
|00002ea0| 69 74 73 20 64 65 73 74 | 72 75 63 74 6f 72 20 69 |its dest|ructor i|
|00002eb0| 73 20 64 69 66 66 65 72 | 65 6e 74 20 74 68 61 6e |s differ|ent than|
|00002ec0| 20 74 68 65 20 64 65 72 | 69 76 65 64 20 63 6c 61 | the der|ived cla|
|00002ed0| 73 73 65 73 20 64 65 73 | 74 72 75 63 74 6f 72 2c |sses des|tructor,|
|00002ee0| 20 61 6e 64 0d 6f 62 6a | 65 63 74 73 20 61 72 65 | and.obj|ects are|
|00002ef0| 20 64 65 6c 65 74 65 64 | 20 76 69 61 20 70 6f 69 | deleted| via poi|
|00002f00| 6e 74 65 72 20 6f 72 20 | 72 65 66 65 72 6e 63 65 |nter or |refernce|
|00002f10| 20 74 6f 20 62 61 73 65 | 20 63 6c 61 73 73 2e 20 | to base| class. |
|00002f20| 28 20 61 20 67 6f 6f 64 | 20 68 61 62 69 74 2c 0d |( a good| habit,.|
|00002f30| 64 65 63 6c 61 72 65 20 | 69 74 20 66 6f 72 20 61 |declare |it for a|
|00002f40| 6c 6c 20 62 61 73 65 20 | 63 6c 61 73 73 65 73 20 |ll base |classes |
|00002f50| 29 0d 0d 32 29 20 69 66 | 20 79 6f 75 20 64 6f 6e |)..2) if| you don|
|00002f60| 27 74 2c 20 79 6f 75 20 | 77 69 6c 6c 20 6e 6f 74 |'t, you |will not|
|00002f70| 20 67 75 61 72 61 6e 74 | 65 65 20 61 6c 6c 20 6f | guarant|ee all o|
|00002f80| 62 6a 65 63 74 73 20 77 | 69 6c 6c 20 62 65 20 64 |bjects w|ill be d|
|00002f90| 65 6c 65 74 65 64 20 77 | 68 65 6e 0d 61 6e 20 6f |eleted w|hen.an o|
|00002fa0| 62 6a 65 63 74 20 69 73 | 20 64 65 6c 65 74 65 64 |bject is| deleted|
|00002fb0| 2c 20 69 66 20 69 74 20 | 69 73 20 61 63 63 65 73 |, if it |is acces|
|00002fc0| 73 65 64 20 61 73 20 61 | 20 62 61 73 65 20 63 6c |sed as a| base cl|
|00002fd0| 61 73 73 20 70 6f 69 74 | 65 72 2e 0d 20 0d 53 63 |ass poit|er.. .Sc|
|00002fe0| 6f 74 74 20 4d 65 79 65 | 72 73 20 69 6e 20 45 66 |ott Meye|rs in Ef|
|00002ff0| 66 65 63 74 69 76 65 20 | 43 2b 2b 20 65 78 70 6c |fective |C++ expl|
|00003000| 61 69 6e 73 20 74 68 69 | 73 20 71 75 69 74 65 20 |ains thi|s quite |
|00003010| 77 65 6c 6c 2e 0d 0d 52 | 6f 6e 20 4c 69 65 63 68 |well...R|on Liech|
|00003020| 74 79 0d 52 6f 6e 4c 40 | 6d 65 74 72 6f 77 65 72 |ty.RonL@|metrower|
|00003030| 6b 73 2e 63 6f 6d 0d 4d | 65 74 72 6f 77 65 72 6b |ks.com.M|etrowerk|
|00003040| 73 20 49 6e 63 2e 0d 0d | 2b 2b 2b 2b 2b 2b 2b 2b |s Inc...|++++++++|
|00003050| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003060| 2b 2b 2b 0d 0d 3e 46 72 | 6f 6d 20 6e 65 65 72 69 |+++..>Fr|om neeri|
|00003070| 40 69 69 73 2e 65 65 2e | 65 74 68 7a 2e 63 68 20 |@iis.ee.|ethz.ch |
|00003080| 28 4d 61 74 74 68 69 61 | 73 20 4e 65 65 72 61 63 |(Matthia|s Neerac|
|00003090| 68 65 72 29 0d 44 61 74 | 65 3a 20 31 39 20 41 75 |her).Dat|e: 19 Au|
|000030a0| 67 20 31 39 39 34 20 32 | 33 3a 31 39 3a 33 32 20 |g 1994 2|3:19:32 |
|000030b0| 47 4d 54 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|000030c0| 3a 20 53 77 69 73 73 20 | 46 65 64 65 72 61 6c 20 |: Swiss |Federal |
|000030d0| 49 6e 73 74 69 74 75 74 | 65 20 6f 66 20 54 65 63 |Institut|e of Tec|
|000030e0| 68 6e 6f 6c 6f 67 79 20 | 28 45 54 48 5a 29 0d 0d |hnology |(ETHZ)..|
|000030f0| 6a 70 65 6b 40 75 6d 69 | 63 68 2e 65 64 75 20 28 |jpek@umi|ch.edu (|
|00003100| 4a 65 66 66 20 50 65 6b | 29 20 77 72 69 74 65 73 |Jeff Pek|) writes|
|00003110| 3a 0d 3e 49 20 77 6f 6e | 64 65 72 20 69 66 20 73 |:.>I won|der if s|
|00003120| 6f 6d 65 6f 6e 65 20 63 | 6f 75 6c 64 20 63 6c 65 |omeone c|ould cle|
|00003130| 61 72 20 74 68 65 20 61 | 69 72 20 61 72 6f 75 6e |ar the a|ir aroun|
|00003140| 64 20 6f 75 72 20 6f 66 | 66 69 63 65 20 61 62 6f |d our of|fice abo|
|00003150| 75 74 20 77 68 79 0d 3e | 76 69 72 74 75 61 6c 20 |ut why.>|virtual |
|00003160| 64 65 73 74 72 75 63 74 | 6f 72 73 20 73 68 6f 75 |destruct|ors shou|
|00003170| 6c 64 20 6f 72 20 73 68 | 6f 75 6c 64 20 6e 6f 74 |ld or sh|ould not|
|00003180| 20 62 65 20 75 73 65 64 | 2e 20 53 70 65 63 69 66 | be used|. Specif|
|00003190| 69 63 61 6c 6c 79 2c 20 | 49 27 6d 0d 3e 69 6e 74 |ically, |I'm.>int|
|000031a0| 65 72 65 73 74 65 64 20 | 69 6e 20 4d 65 74 72 6f |erested |in Metro|
|000031b0| 77 65 72 6b 73 27 20 63 | 6f 6d 70 69 6c 65 72 27 |werks' c|ompiler'|
|000031c0| 73 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |s implem|entation|
|000031d0| 2e 0d 0d 3e 31 29 20 57 | 68 79 20 77 6f 75 6c 64 |...>1) W|hy would|
|000031e0| 20 49 20 77 61 6e 74 20 | 74 6f 2f 6e 65 65 64 20 | I want |to/need |
|000031f0| 74 6f 20 64 65 63 6c 61 | 72 65 20 61 20 64 65 73 |to decla|re a des|
|00003200| 74 72 75 63 74 6f 72 20 | 76 69 72 74 75 61 6c 3f |tructor |virtual?|
|00003210| 0d 0d 41 73 20 61 20 72 | 75 6c 65 20 6f 66 20 74 |..As a r|ule of t|
|00003220| 68 75 6d 62 2c 20 61 73 | 20 73 6f 6f 6e 20 61 73 |humb, as| soon as|
|00003230| 20 79 6f 75 20 68 61 76 | 65 20 61 20 76 69 72 74 | you hav|e a virt|
|00003240| 75 61 6c 20 66 75 6e 63 | 74 69 6f 6e 20 66 6f 72 |ual func|tion for|
|00003250| 20 61 20 63 6c 61 73 73 | 2c 0d 79 6f 75 20 73 68 | a class|,.you sh|
|00003260| 6f 75 6c 64 20 61 6c 73 | 6f 20 68 61 76 65 20 61 |ould als|o have a|
|00003270| 20 76 69 72 74 75 61 6c | 20 64 65 73 74 72 75 63 | virtual| destruc|
|00003280| 74 69 6f 6e 2e 0d 0d 3e | 32 29 20 57 68 61 74 20 |tion...>|2) What |
|00003290| 68 61 70 70 65 6e 73 20 | 69 66 20 49 20 64 6f 6e |happens |if I don|
|000032a0| 27 74 3f 0d 0d 41 73 20 | 61 6e 20 65 78 61 6d 70 |'t?..As |an examp|
|000032b0| 6c 65 2c 20 74 61 6b 65 | 3a 0d 0d 63 6c 61 73 73 |le, take|:..class|
|000032c0| 20 41 20 2e 2e 2e 0d 63 | 6c 61 73 73 20 42 20 3a | A ....c|lass B :|
|000032d0| 20 70 75 62 6c 69 63 20 | 41 20 2e 2e 2e 0d 0d 41 | public |A .....A|
|000032e0| 20 2a 20 70 61 20 3d 20 | 6e 65 77 20 42 3b 0d 0d | * pa = |new B;..|
|000032f0| 64 65 6c 65 74 65 20 70 | 61 3b 0d 0d 55 6e 6c 65 |delete p|a;..Unle|
|00003300| 73 73 20 41 20 68 61 73 | 20 61 20 76 69 72 74 75 |ss A has| a virtu|
|00003310| 61 6c 20 64 65 73 74 72 | 75 63 74 6f 72 2c 20 6e |al destr|uctor, n|
|00003320| 6f 20 64 65 73 74 72 75 | 63 74 6f 72 20 66 6f 72 |o destru|ctor for|
|00003330| 20 42 20 77 69 6c 6c 20 | 62 65 20 65 78 65 63 75 | B will |be execu|
|00003340| 74 65 64 20 6f 6e 20 74 | 68 65 0d 6f 62 6a 65 63 |ted on t|he.objec|
|00003350| 74 20 70 6f 69 6e 74 65 | 64 20 74 6f 20 62 79 20 |t pointe|d to by |
|00003360| 70 61 2c 20 77 68 69 63 | 68 20 69 73 20 77 6f 75 |pa, whic|h is wou|
|00003370| 6c 64 20 6f 66 74 65 6e | 20 62 65 20 64 65 73 69 |ld often| be desi|
|00003380| 72 61 62 6c 65 2e 0d 0d | 4d 61 74 74 68 69 61 73 |rable...|Matthias|
|00003390| 0d 0d 2d 20 2d 2d 2d 0d | 4d 61 74 74 68 69 61 73 |..- ---.|Matthias|
|000033a0| 20 4e 65 65 72 61 63 68 | 65 72 20 3c 6e 65 65 72 | Neerach|er <neer|
|000033b0| 69 40 69 69 73 2e 65 65 | 2e 65 74 68 7a 2e 63 68 |i@iis.ee|.ethz.ch|
|000033c0| 3e 20 68 74 74 70 3a 2f | 2f 65 72 72 2e 65 74 68 |> http:/|/err.eth|
|000033d0| 7a 2e 63 68 2f 6d 65 6d | 62 65 72 73 2f 6e 65 65 |z.ch/mem|bers/nee|
|000033e0| 72 69 2e 68 74 6d 6c 0d | 20 20 20 22 54 68 65 72 |ri.html.| "Ther|
|000033f0| 65 20 6f 6e 63 65 20 77 | 61 73 20 61 6e 20 41 67 |e once w|as an Ag|
|00003400| 65 20 6f 66 20 52 65 61 | 73 6f 6e 2c 20 62 75 74 |e of Rea|son, but|
|00003410| 20 77 65 27 76 65 20 70 | 72 6f 67 72 65 73 73 65 | we've p|rogresse|
|00003420| 64 20 62 65 79 6f 6e 64 | 20 69 74 2e 22 0d 20 20 |d beyond| it.". |
|00003430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003450| 20 2d 2d 20 41 79 6e 20 | 52 61 6e 64 2c 20 5f 41 | -- Ayn |Rand, _A|
|00003460| 74 6c 61 73 20 53 68 72 | 75 67 67 65 64 5f 0d 0d |tlas Shr|ugged_..|
|00003470| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003480| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00003490| 6f 6d 20 67 75 72 67 6c | 65 40 64 6e 61 69 2e 63 |om gurgl|e@dnai.c|
|000034a0| 6f 6d 20 28 50 65 74 65 | 20 47 6f 6e 74 69 65 72 |om (Pete| Gontier|
|000034b0| 29 0d 44 61 74 65 3a 20 | 46 72 69 2c 20 31 39 20 |).Date: |Fri, 19 |
|000034c0| 41 75 67 20 31 39 39 34 | 20 32 30 3a 31 37 3a 33 |Aug 1994| 20:17:3|
|000034d0| 34 20 2d 30 38 30 30 0d | 4f 72 67 61 6e 69 7a 61 |4 -0800.|Organiza|
|000034e0| 74 69 6f 6e 3a 20 49 6e | 74 65 67 65 72 20 50 6f |tion: In|teger Po|
|000034f0| 65 74 20 53 6f 66 74 77 | 61 72 65 0d 0d 49 6e 20 |et Softw|are..In |
|00003500| 61 72 74 69 63 6c 65 20 | 3c 33 33 33 61 61 6b 24 |article |<333aak$|
|00003510| 66 6a 38 40 6c 61 73 74 | 61 63 74 69 6f 6e 68 65 |fj8@last|actionhe|
|00003520| 72 6f 2e 72 73 2e 69 74 | 64 2e 75 6d 69 63 68 2e |ro.rs.it|d.umich.|
|00003530| 65 64 75 3e 2c 20 6a 70 | 65 6b 40 75 6d 69 63 68 |edu>, jp|ek@umich|
|00003540| 2e 65 64 75 0d 28 4a 65 | 66 66 20 50 65 6b 29 20 |.edu.(Je|ff Pek) |
|00003550| 77 72 6f 74 65 3a 0d 0d | 3e 20 31 29 20 57 68 79 |wrote:..|> 1) Why|
|00003560| 20 77 6f 75 6c 64 20 49 | 20 77 61 6e 74 20 74 6f | would I| want to|
|00003570| 2f 6e 65 65 64 20 74 6f | 20 64 65 63 6c 61 72 65 |/need to| declare|
|00003580| 20 61 20 28 43 2b 2b 29 | 20 64 65 73 74 72 75 63 | a (C++)| destruc|
|00003590| 74 6f 72 20 76 69 72 74 | 75 61 6c 3f 0d 3e 20 32 |tor virt|ual?.> 2|
|000035a0| 29 20 57 68 61 74 20 68 | 61 70 70 65 6e 73 20 69 |) What h|appens i|
|000035b0| 66 20 49 20 64 6f 6e 27 | 74 3f 0d 0d 54 68 65 20 |f I don'|t?..The |
|000035c0| 41 6e 6e 6f 74 61 74 65 | 64 20 43 2b 2b 20 52 65 |Annotate|d C++ Re|
|000035d0| 66 65 72 65 6e 63 65 20 | 4d 61 6e 75 61 6c 20 28 |ference |Manual (|
|000035e0| 63 6f 6d 6d 6f 6e 6c 79 | 20 6b 6e 6f 77 6e 20 61 |commonly| known a|
|000035f0| 73 20 22 74 68 65 20 41 | 52 4d 22 29 2c 20 45 6c |s "the A|RM"), El|
|00003600| 6c 69 73 0d 61 6e 64 20 | 53 74 72 6f 75 73 74 75 |lis.and |Stroustu|
|00003610| 70 2c 20 49 53 42 4e 2c | 20 30 2d 32 30 31 2d 35 |p, ISBN,| 0-201-5|
|00003620| 31 34 35 39 2d 31 2c 20 | 63 68 61 70 74 65 72 20 |1459-1, |chapter |
|00003630| 31 32 2e 34 20 28 70 61 | 67 65 20 32 37 36 20 69 |12.4 (pa|ge 276 i|
|00003640| 6e 20 6d 79 0d 70 72 69 | 6e 74 69 6e 67 29 2e 0d |n my.pri|nting)..|
|00003650| 0d 41 6e 64 20 61 20 6e | 6f 74 65 20 74 6f 20 61 |.And a n|ote to a|
|00003660| 69 64 20 69 6e 20 79 6f | 75 72 20 72 65 61 64 69 |id in yo|ur readi|
|00003670| 6e 67 3a 20 6e 6f 6e 2d | 76 69 72 74 75 61 6c 20 |ng: non-|virtual |
|00003680| 64 65 73 74 72 75 63 74 | 6f 72 73 20 61 72 65 20 |destruct|ors are |
|00003690| 74 68 65 0d 65 78 63 65 | 70 74 69 6f 6e 20 28 6e |the.exce|ption (n|
|000036a0| 6f 20 70 75 6e 20 69 6e | 74 65 6e 64 65 64 29 2c |o pun in|tended),|
|000036b0| 20 6e 6f 74 20 74 68 65 | 20 72 75 6c 65 2e 0d 0d | not the| rule...|
|000036c0| 2d 2d 20 0d 20 50 65 74 | 65 20 47 6f 6e 74 69 65 |-- . Pet|e Gontie|
|000036d0| 72 20 2f 2f 20 43 54 4f | 2c 20 49 6e 74 65 67 65 |r // CTO|, Intege|
|000036e0| 72 20 50 6f 65 74 20 53 | 6f 66 74 77 61 72 65 20 |r Poet S|oftware |
|000036f0| 2f 2f 20 67 75 72 67 6c | 65 40 64 6e 61 69 2e 63 |// gurgl|e@dnai.c|
|00003700| 6f 6d 0d 0d 20 22 45 76 | 65 6e 20 64 75 72 69 6e |om.. "Ev|en durin|
|00003710| 67 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 6c 79 |g a part|icularly|
|00003720| 20 68 61 72 73 68 20 28 | 43 6f 6c 6f 72 61 64 6f | harsh (|Colorado|
|00003730| 29 20 77 69 6e 74 65 72 | 2e 2e 2e 20 6d 61 6e 79 |) winter|... many|
|00003740| 20 6f 66 20 74 68 65 0d | 20 33 30 30 20 66 61 6d | of the.| 300 fam|
|00003750| 69 6c 69 65 73 20 69 6e | 20 74 68 65 20 56 43 54 |ilies in| the VCT|
|00003760| 56 20 28 6d 6f 76 69 65 | 73 2d 6f 6e 2d 64 65 6d |V (movie|s-on-dem|
|00003770| 61 6e 64 29 20 74 72 69 | 61 6c 20 63 6f 6e 74 69 |and) tri|al conti|
|00003780| 6e 75 65 64 20 74 6f 20 | 67 6f 0d 20 74 6f 20 76 |nued to |go. to v|
|00003790| 69 64 65 6f 20 73 74 6f | 72 65 73 2e 22 20 2d 2d |ideo sto|res." --|
|000037a0| 20 65 69 73 40 6d 75 72 | 72 6f 77 2e 74 75 66 74 | eis@mur|row.tuft|
|000037b0| 73 2e 65 64 75 2c 20 69 | 6e 20 57 69 72 65 64 20 |s.edu, i|n Wired |
|000037c0| 32 2e 30 39 20 70 36 32 | 0d 0d 2b 2b 2b 2b 2b 2b |2.09 p62|..++++++|
|000037d0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000037e0| 2b 2b 2b 2b 2b 0d 0d 3e | 46 72 6f 6d 20 6d 77 72 |+++++..>|From mwr|
|000037f0| 6f 6e 40 61 6f 6c 2e 63 | 6f 6d 20 28 4d 57 20 52 |on@aol.c|om (MW R|
|00003800| 6f 6e 29 0d 44 61 74 65 | 3a 20 32 30 20 41 75 67 |on).Date|: 20 Aug|
|00003810| 20 31 39 39 34 20 31 32 | 3a 32 30 3a 30 31 20 2d | 1994 12|:20:01 -|
|00003820| 30 34 30 30 0d 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0400.Org|anizatio|
|00003830| 6e 3a 20 41 6d 65 72 69 | 63 61 20 4f 6e 6c 69 6e |n: Ameri|ca Onlin|
|00003840| 65 2c 20 49 6e 63 2e 20 | 28 31 2d 38 30 30 2d 38 |e, Inc. |(1-800-8|
|00003850| 32 37 2d 36 33 36 34 29 | 0d 0d 49 6e 20 61 72 74 |27-6364)|..In art|
|00003860| 69 63 6c 65 20 3c 67 75 | 72 67 6c 65 2d 31 39 30 |icle <gu|rgle-190|
|00003870| 38 39 34 32 30 31 37 33 | 34 30 30 30 31 40 67 75 |89420173|40001@gu|
|00003880| 72 67 6c 65 2e 64 6e 61 | 69 2e 63 6f 6d 3e 2c 20 |rgle.dna|i.com>, |
|00003890| 67 75 72 67 6c 65 40 64 | 6e 61 69 2e 63 6f 6d 0d |gurgle@d|nai.com.|
|000038a0| 28 50 65 74 65 20 47 6f | 6e 74 69 65 72 29 20 77 |(Pete Go|ntier) w|
|000038b0| 72 69 74 65 73 3a 0d 0d | 48 65 72 65 20 69 73 20 |rites:..|Here is |
|000038c0| 61 20 73 68 6f 72 74 20 | 65 78 61 6d 70 6c 65 20 |a short |example |
|000038d0| 6f 66 20 61 20 76 69 72 | 74 75 61 6c 20 64 65 73 |of a vir|tual des|
|000038e0| 74 72 75 63 74 6f 72 20 | 69 6e 20 75 73 65 2e 20 |tructor |in use. |
|000038f0| 72 65 6d 6f 76 65 20 74 | 68 65 20 76 69 72 74 75 |remove t|he virtu|
|00003900| 61 6c 0d 6b 65 79 77 6f | 72 64 20 61 6e 64 20 79 |al.keywo|rd and y|
|00003910| 6f 75 20 77 69 6c 6c 20 | 73 65 65 20 74 68 61 74 |ou will |see that|
|00003920| 20 6f 6e 6c 79 20 74 68 | 65 20 62 61 73 65 20 63 | only th|e base c|
|00003930| 6c 61 73 73 27 73 20 64 | 65 73 74 72 75 63 74 6f |lass's d|estructo|
|00003940| 72 20 69 73 20 63 61 6c | 6c 65 64 2e 0d 52 6f 6e |r is cal|led..Ron|
|00003950| 20 4c 69 65 63 68 74 79 | 0d 52 6f 6e 4c 40 6d 65 | Liechty|.RonL@me|
|00003960| 74 72 6f 77 65 72 6b 73 | 2e 63 6f 6d 0d 4d 65 74 |trowerks|.com.Met|
|00003970| 72 6f 77 65 72 6b 73 20 | 49 6e 63 2e 0d 0d 23 69 |rowerks |Inc...#i|
|00003980| 6e 63 6c 75 64 65 20 3c | 69 6f 73 74 72 65 61 6d |nclude <|iostream|
|00003990| 3e 0d 0d 63 6c 61 73 73 | 20 62 61 73 65 20 7b 0d |>..class| base {.|
|000039a0| 20 20 70 75 62 6c 69 63 | 3a 0d 20 20 20 20 20 69 | public|:. i|
|000039b0| 6e 74 20 2a 61 3b 0d 20 | 20 70 72 6f 74 65 63 74 |nt *a;. | protect|
|000039c0| 65 64 3a 0d 20 20 20 20 | 20 62 61 73 65 28 29 20 |ed:. | base() |
|000039d0| 7b 20 61 20 3d 20 6e 65 | 77 20 69 6e 74 28 31 29 |{ a = ne|w int(1)|
|000039e0| 3b 7d 0d 20 20 70 75 62 | 6c 69 63 3a 0d 20 20 20 |;}. pub|lic:. |
|000039f0| 20 20 76 69 72 74 75 61 | 6c 20 7e 62 61 73 65 28 | virtua|l ~base(|
|00003a00| 29 20 20 7b 20 63 6f 75 | 74 20 3c 3c 20 22 64 65 |) { cou|t << "de|
|00003a10| 6c 65 74 65 74 69 6e 67 | 20 62 61 73 65 20 22 3b |leteting| base ";|
|00003a20| 20 64 65 6c 65 74 65 20 | 61 3b 7d 3b 0d 7d 3b 0d | delete |a;};.};.|
|00003a30| 0d 63 6c 61 73 73 20 62 | 61 73 65 32 20 3a 20 70 |.class b|ase2 : p|
|00003a40| 75 62 6c 69 63 20 62 61 | 73 65 20 7b 0d 20 20 70 |ublic ba|se {. p|
|00003a50| 75 62 6c 69 63 3a 0d 20 | 20 20 20 20 20 69 6e 74 |ublic:. | int|
|00003a60| 20 2a 62 3b 0d 20 20 70 | 72 6f 74 65 63 74 65 64 | *b;. p|rotected|
|00003a70| 3a 0d 20 20 20 20 20 20 | 62 61 73 65 32 28 29 20 |:. |base2() |
|00003a80| 7b 20 62 20 3d 20 6e 65 | 77 20 69 6e 74 28 31 29 |{ b = ne|w int(1)|
|00003a90| 3b 7d 0d 20 20 70 75 62 | 6c 69 63 3a 0d 20 20 20 |;}. pub|lic:. |
|00003aa0| 20 20 20 76 69 72 74 75 | 61 6c 20 7e 62 61 73 65 | virtu|al ~base|
|00003ab0| 32 28 29 20 20 7b 20 63 | 6f 75 74 20 3c 3c 20 22 |2() { c|out << "|
|00003ac0| 64 65 6c 65 74 65 74 69 | 6e 67 20 62 61 73 65 32 |deleteti|ng base2|
|00003ad0| 20 22 3b 20 64 65 6c 65 | 74 65 20 62 3b 7d 3b 0d | "; dele|te b;};.|
|00003ae0| 20 7d 3b 0d 20 0d 20 63 | 6c 61 73 73 20 64 20 3a | };. . c|lass d :|
|00003af0| 20 70 75 62 6c 69 63 20 | 62 61 73 65 32 20 7b 0d | public |base2 {.|
|00003b00| 20 20 20 20 20 70 75 62 | 6c 69 63 20 3a 0d 20 20 | pub|lic :. |
|00003b10| 20 20 20 20 20 69 6e 74 | 20 2a 63 3b 0d 20 20 20 | int| *c;. |
|00003b20| 20 20 70 75 62 6c 69 63 | 3a 0d 20 20 20 20 20 20 | public|:. |
|00003b30| 20 64 28 29 20 7b 20 63 | 20 3d 20 6e 65 77 20 69 | d() { c| = new i|
|00003b40| 6e 74 28 33 29 3b 7d 0d | 20 20 20 20 20 20 20 7e |nt(3);}.| ~|
|00003b50| 64 28 29 20 7b 20 63 6f | 75 74 20 3c 3c 20 22 64 |d() { co|ut << "d|
|00003b60| 65 6c 65 74 65 74 69 6e | 67 20 64 20 22 3b 20 64 |eletetin|g d "; d|
|00003b70| 65 6c 65 74 65 20 63 3b | 7d 3b 0d 20 7d 3b 20 20 |elete c;|};. }; |
|00003b80| 20 20 0d 20 20 20 20 20 | 20 0d 20 20 20 20 20 20 | . | . |
|00003b90| 0d 20 6d 61 69 6e 28 29 | 0d 20 7b 0d 20 20 20 20 |. main()|. {. |
|00003ba0| 62 61 73 65 20 2a 62 50 | 74 72 20 3d 20 6e 65 77 |base *bP|tr = new|
|00003bb0| 20 64 3b 0d 20 20 20 20 | 64 65 6c 65 74 65 20 62 | d;. |delete b|
|00003bc0| 50 74 72 3b 0d 20 20 20 | 20 0d 20 20 20 20 63 6f |Ptr;. | . co|
|00003bd0| 75 74 20 3c 3c 20 22 65 | 6e 74 65 72 20 61 20 63 |ut << "e|nter a c|
|00003be0| 68 61 72 20 22 20 3b 0d | 20 20 20 20 63 69 6e 2e |har " ;.| cin.|
|00003bf0| 67 65 74 28 29 3b 20 20 | 20 0d 20 20 20 20 72 65 |get(); | . re|
|00003c00| 74 75 72 6e 20 30 3b 0d | 20 7d 20 20 20 20 20 0d |turn 0;.| } .|
|00003c10| 20 20 20 20 20 20 0d 0d | 2b 2b 2b 2b 2b 2b 2b 2b | ..|++++++++|
|00003c20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003c30| 2b 2b 2b 0d 0d 3e 46 72 | 6f 6d 20 65 6b 73 74 72 |+++..>Fr|om ekstr|
|00003c40| 6f 6d 40 61 67 67 72 6f | 75 70 2e 63 6f 6d 20 28 |om@aggro|up.com (|
|00003c50| 48 61 72 6f 6c 64 20 45 | 6b 73 74 72 6f 6d 29 0d |Harold E|kstrom).|
|00003c60| 44 61 74 65 3a 20 53 61 | 74 2c 20 32 30 20 41 75 |Date: Sa|t, 20 Au|
|00003c70| 67 20 31 39 39 34 20 32 | 30 3a 34 35 3a 31 35 20 |g 1994 2|0:45:15 |
|00003c80| 2d 30 38 30 30 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |-0800.Or|ganizati|
|00003c90| 6f 6e 3a 20 41 67 20 47 | 72 6f 75 70 0d 0d 49 6e |on: Ag G|roup..In|
|00003ca0| 20 61 72 74 69 63 6c 65 | 20 3c 33 33 33 67 34 36 | article| <333g46|
|00003cb0| 24 68 75 35 40 73 65 61 | 72 63 68 30 31 2e 6e 65 |$hu5@sea|rch01.ne|
|00003cc0| 77 73 2e 61 6f 6c 2e 63 | 6f 6d 3e 2c 20 6d 77 72 |ws.aol.c|om>, mwr|
|00003cd0| 6f 6e 40 61 6f 6c 2e 63 | 6f 6d 20 28 4d 57 20 52 |on@aol.c|om (MW R|
|00003ce0| 6f 6e 29 20 77 72 6f 74 | 65 3a 0d 0d 3e 20 49 6e |on) wrot|e:..> In|
|00003cf0| 20 61 72 74 69 63 6c 65 | 20 3c 33 33 33 61 61 6b | article| <333aak|
|00003d00| 24 66 6a 38 40 6c 61 73 | 74 61 63 74 69 6f 6e 68 |$fj8@las|tactionh|
|00003d10| 65 72 6f 2e 72 73 2e 69 | 74 64 2e 75 6d 69 63 68 |ero.rs.i|td.umich|
|00003d20| 2e 65 64 75 3e 2c 20 6a | 70 65 6b 40 75 6d 69 63 |.edu>, j|pek@umic|
|00003d30| 68 2e 65 64 75 0d 3e 20 | 28 4a 65 66 66 20 50 65 |h.edu.> |(Jeff Pe|
|00003d40| 6b 29 20 77 72 69 74 65 | 73 3a 0d 3e 20 0d 3e 20 |k) write|s:.> .> |
|00003d50| 3e 3e 31 29 20 57 68 79 | 20 77 6f 75 6c 64 20 49 |>>1) Why| would I|
|00003d60| 20 77 61 6e 74 20 74 6f | 2f 6e 65 65 64 20 74 6f | want to|/need to|
|00003d70| 20 64 65 63 6c 61 72 65 | 20 61 20 64 65 73 74 72 | declare| a destr|
|00003d80| 75 63 74 6f 72 20 76 69 | 72 74 75 61 6c 3f 0d 3e |uctor vi|rtual?.>|
|00003d90| 20 3e 3e 32 29 20 57 68 | 61 74 20 68 61 70 70 65 | >>2) Wh|at happe|
|00003da0| 6e 73 20 69 66 20 49 20 | 64 6f 6e 27 74 3f 0d 3e |ns if I |don't?.>|
|00003db0| 20 0d 3e 20 31 29 20 59 | 6f 75 20 6e 65 65 64 20 | .> 1) Y|ou need |
|00003dc0| 74 6f 20 64 65 63 6c 61 | 72 65 20 61 20 76 69 72 |to decla|re a vir|
|00003dd0| 74 75 61 6c 20 64 65 73 | 74 72 75 63 74 6f 72 20 |tual des|tructor |
|00003de0| 77 68 65 6e 20 79 6f 75 | 20 68 61 76 65 20 61 20 |when you| have a |
|00003df0| 62 61 73 65 20 63 6c 61 | 73 73 2c 0d 3e 20 69 74 |base cla|ss,.> it|
|00003e00| 73 20 64 65 73 74 72 75 | 63 74 6f 72 20 69 73 20 |s destru|ctor is |
|00003e10| 64 69 66 66 65 72 65 6e | 74 20 74 68 61 6e 20 74 |differen|t than t|
|00003e20| 68 65 20 64 65 72 69 76 | 65 64 20 63 6c 61 73 73 |he deriv|ed class|
|00003e30| 65 73 20 64 65 73 74 72 | 75 63 74 6f 72 2c 20 61 |es destr|uctor, a|
|00003e40| 6e 64 0d 3e 20 6f 62 6a | 65 63 74 73 20 61 72 65 |nd.> obj|ects are|
|00003e50| 20 64 65 6c 65 74 65 64 | 20 76 69 61 20 70 6f 69 | deleted| via poi|
|00003e60| 6e 74 65 72 20 6f 72 20 | 72 65 66 65 72 6e 63 65 |nter or |refernce|
|00003e70| 20 74 6f 20 62 61 73 65 | 20 63 6c 61 73 73 2e 20 | to base| class. |
|00003e80| 28 20 61 20 67 6f 6f 64 | 20 68 61 62 69 74 2c 0d |( a good| habit,.|
|00003e90| 3e 20 64 65 63 6c 61 72 | 65 20 69 74 20 66 6f 72 |> declar|e it for|
|00003ea0| 20 61 6c 6c 20 62 61 73 | 65 20 63 6c 61 73 73 65 | all bas|e classe|
|00003eb0| 73 20 29 0d 3e 20 0d 3e | 20 32 29 20 69 66 20 79 |s ).> .>| 2) if y|
|00003ec0| 6f 75 20 64 6f 6e 27 74 | 2c 20 79 6f 75 20 77 69 |ou don't|, you wi|
|00003ed0| 6c 6c 20 6e 6f 74 20 67 | 75 61 72 61 6e 74 65 65 |ll not g|uarantee|
|00003ee0| 20 61 6c 6c 20 6f 62 6a | 65 63 74 73 20 77 69 6c | all obj|ects wil|
|00003ef0| 6c 20 62 65 20 64 65 6c | 65 74 65 64 20 77 68 65 |l be del|eted whe|
|00003f00| 6e 0d 3e 20 61 6e 20 6f | 62 6a 65 63 74 20 69 73 |n.> an o|bject is|
|00003f10| 20 64 65 6c 65 74 65 64 | 2c 20 69 66 20 69 74 20 | deleted|, if it |
|00003f20| 69 73 20 61 63 63 65 73 | 73 65 64 20 61 73 20 61 |is acces|sed as a|
|00003f30| 20 62 61 73 65 20 63 6c | 61 73 73 20 70 6f 69 74 | base cl|ass poit|
|00003f40| 65 72 2e 0d 3e 20 20 0d | 3e 20 53 63 6f 74 74 20 |er..> .|> Scott |
|00003f50| 4d 65 79 65 72 73 20 69 | 6e 20 45 66 66 65 63 74 |Meyers i|n Effect|
|00003f60| 69 76 65 20 43 2b 2b 20 | 65 78 70 6c 61 69 6e 73 |ive C++ |explains|
|00003f70| 20 74 68 69 73 20 71 75 | 69 74 65 20 77 65 6c 6c | this qu|ite well|
|00003f80| 2e 0d 3e 20 0d 3e 20 52 | 6f 6e 20 4c 69 65 63 68 |..> .> R|on Liech|
|00003f90| 74 79 0d 3e 20 52 6f 6e | 4c 40 6d 65 74 72 6f 77 |ty.> Ron|L@metrow|
|00003fa0| 65 72 6b 73 2e 63 6f 6d | 0d 3e 20 4d 65 74 72 6f |erks.com|.> Metro|
|00003fb0| 77 65 72 6b 73 20 49 6e | 63 2e 0d 0d 41 6e 6f 74 |werks In|c...Anot|
|00003fc0| 68 65 72 20 67 6f 6f 64 | 20 73 6f 75 72 63 65 20 |her good| source |
|00003fd0| 6f 66 20 61 6e 73 77 65 | 72 73 20 66 6f 72 20 74 |of answe|rs for t|
|00003fe0| 68 69 73 20 61 6e 64 20 | 6f 74 68 65 72 20 63 6f |his and |other co|
|00003ff0| 6d 6d 6f 6e 20 43 2b 2b | 0d 71 75 65 73 74 69 6f |mmon C++|.questio|
|00004000| 6e 73 20 69 73 20 74 68 | 65 20 43 2b 2b 46 41 51 |ns is th|e C++FAQ|
|00004010| 20 28 72 74 66 6d 2e 6d | 69 74 2e 65 64 75 29 2e | (rtfm.m|it.edu).|
|00004020| 20 49 74 20 77 61 73 20 | 6f 6e 65 20 6f 66 20 74 | It was |one of t|
|00004030| 68 65 0d 66 69 72 73 74 | 20 74 68 69 6e 67 73 20 |he.first| things |
|00004040| 49 20 72 65 61 64 20 77 | 68 65 6e 20 6c 65 61 72 |I read w|hen lear|
|00004050| 6e 69 6e 67 20 43 2b 2b | 2e 0d 0d 68 61 72 6f 6c |ning C++|...harol|
|00004060| 64 0d 2d 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |d.- ----|--------|
|00004070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000040a0| 0d 48 61 72 6f 6c 64 20 | 45 6b 73 74 72 6f 6d 0d |.Harold |Ekstrom.|
|000040b0| 65 6b 73 74 72 6f 6d 40 | 61 67 67 72 6f 75 70 2e |ekstrom@|aggroup.|
|000040c0| 63 6f 6d 0d 61 67 20 67 | 72 6f 75 70 2c 20 69 6e |com.ag g|roup, in|
|000040d0| 63 2e 0d 32 35 34 30 20 | 63 61 6d 69 6e 6f 20 64 |c..2540 |camino d|
|000040e0| 69 61 62 6c 6f 2c 20 73 | 75 69 74 65 20 32 30 30 |iablo, s|uite 200|
|000040f0| 0d 77 61 6c 6e 75 74 20 | 63 72 65 65 6b 2c 20 63 |.walnut |creek, c|
|00004100| 61 20 39 34 35 39 36 0d | 35 31 30 2d 39 33 37 2d |a 94596.|510-937-|
|00004110| 37 39 30 30 20 76 6f 69 | 63 65 0d 35 31 30 2d 39 |7900 voi|ce.510-9|
|00004120| 33 37 2d 32 34 37 39 20 | 66 61 78 0d 35 31 30 2d |37-2479 |fax.510-|
|00004130| 39 33 37 2d 36 37 30 34 | 20 61 72 61 0d 66 74 70 |937-6704| ara.ftp|
|00004140| 2e 61 67 67 72 6f 75 70 | 2e 63 6f 6d 20 61 6e 6f |.aggroup|.com ano|
|00004150| 6e 79 6d 6f 75 73 20 66 | 74 70 0d 20 0d 0d 2d 2d |nymous f|tp. ..--|
|00004160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004170| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 0d 3e 46 72 6f 6d |--------|-..>From|
|00004180| 20 61 66 72 61 6e 63 6b | 65 40 6e 65 74 63 6f 6d | afranck|e@netcom|
|00004190| 2e 63 6f 6d 20 28 41 6e | 64 72 65 77 20 46 72 61 |.com (An|drew Fra|
|000041a0| 6e 63 6b 65 29 0d 53 75 | 62 6a 65 63 74 3a 20 45 |ncke).Su|bject: E|
|000041b0| 6e 75 6d 20 73 69 7a 65 | 20 2d 2d 20 77 68 61 74 |num size| -- what|
|000041c0| 27 73 20 74 68 65 20 4c | 43 44 3f 0d 44 61 74 65 |'s the L|CD?.Date|
|000041d0| 3a 20 57 65 64 2c 20 31 | 37 20 41 75 67 20 31 39 |: Wed, 1|7 Aug 19|
|000041e0| 39 34 20 30 32 3a 35 34 | 3a 35 36 20 47 4d 54 0d |94 02:54|:56 GMT.|
|000041f0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 4e 65 |Organiza|tion: Ne|
|00004200| 74 63 6f 6d 20 4f 6e 6c | 69 6e 65 20 43 6f 6d 6d |tcom Onl|ine Comm|
|00004210| 75 6e 69 63 61 74 69 6f | 6e 73 20 53 65 72 76 69 |unicatio|ns Servi|
|00004220| 63 65 73 20 28 34 30 38 | 2d 32 34 31 2d 39 37 36 |ces (408|-241-976|
|00004230| 30 20 6c 6f 67 69 6e 3a | 20 67 75 65 73 74 29 0d |0 login:| guest).|
|00004240| 0d 49 66 20 49 27 6d 20 | 6e 6f 74 20 6d 69 73 74 |.If I'm |not mist|
|00004250| 61 6b 65 6e 2c 20 74 68 | 65 20 6c 6f 77 65 73 74 |aken, th|e lowest|
|00004260| 20 63 6f 6d 6d 6f 6e 20 | 64 65 6e 6f 6d 69 6e 61 | common |denomina|
|00004270| 74 6f 72 20 66 6f 72 20 | 65 6e 75 6d 20 73 69 7a |tor for |enum siz|
|00004280| 65 20 69 73 0d 74 68 61 | 74 20 70 72 65 73 65 6e |e is.tha|t presen|
|00004290| 74 65 64 20 62 79 20 4d | 50 57 20 36 38 6b 20 43 |ted by M|PW 68k C|
|000042a0| 20 2d 2d 20 76 61 72 69 | 61 62 6c 65 20 31 2c 20 | -- vari|able 1, |
|000042b0| 32 2c 20 6f 72 20 34 20 | 62 79 74 65 73 2e 20 4f |2, or 4 |bytes. O|
|000042c0| 74 68 65 72 20 4d 61 63 | 20 43 0d 61 6e 64 20 43 |ther Mac| C.and C|
|000042d0| 2b 2b 20 63 6f 6d 70 69 | 6c 65 72 73 20 73 75 70 |++ compi|lers sup|
|000042e0| 70 6f 72 74 20 74 68 65 | 20 41 4e 53 49 20 64 65 |port the| ANSI de|
|000042f0| 66 69 6e 69 74 69 6f 6e | 2c 20 73 69 7a 65 6f 66 |finition|, sizeof|
|00004300| 28 65 6e 75 6d 29 20 3d | 3d 0d 73 69 7a 65 6f 66 |(enum) =|=.sizeof|
|00004310| 28 69 6e 74 29 2c 20 62 | 75 74 20 6e 6f 74 20 4d |(int), b|ut not M|
|00004320| 50 57 20 43 2e 20 41 6c | 6c 20 4d 61 63 20 63 6f |PW C. Al|l Mac co|
|00004330| 6d 70 69 6c 65 72 73 20 | 73 75 70 70 6f 72 74 20 |mpilers |support |
|00004340| 76 61 72 69 61 62 6c 65 | 20 65 6e 75 6d 0d 73 69 |variable| enum.si|
|00004350| 7a 65 20 6a 75 73 74 20 | 6c 69 6b 65 20 4d 50 57 |ze just |like MPW|
|00004360| 20 43 2e 0d 0d 49 73 20 | 74 68 69 73 20 73 74 72 | C...Is |this str|
|00004370| 69 63 74 6c 79 20 63 6f | 72 72 65 63 74 3f 0d 0d |ictly co|rrect?..|
|00004380| 4e 6f 77 2c 20 65 78 61 | 6d 69 6e 65 20 74 68 65 |Now, exa|mine the|
|00004390| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 64 65 3a | followi|ng code:|
|000043a0| 0d 0d 74 79 70 65 64 65 | 66 20 65 6e 75 6d 0d 7b |..typede|f enum.{|
|000043b0| 0d 09 61 3d 32 35 35 0d | 7d 20 6f 6e 65 5f 62 79 |..a=255.|} one_by|
|000043c0| 74 65 5f 65 6e 75 6d 5f | 74 3b 0d 0d 74 79 70 65 |te_enum_|t;..type|
|000043d0| 64 65 66 20 65 6e 75 6d | 0d 7b 0d 09 62 3d 36 35 |def enum|.{..b=65|
|000043e0| 30 30 30 0d 7d 20 74 77 | 6f 5f 62 79 74 65 5f 65 |000.} tw|o_byte_e|
|000043f0| 6e 75 6d 5f 74 3b 0d 0d | 74 79 70 65 64 65 66 20 |num_t;..|typedef |
|00004400| 65 6e 75 6d 0d 7b 0d 09 | 63 3d 31 30 30 30 30 30 |enum.{..|c=100000|
|00004410| 30 0d 7d 20 74 68 72 65 | 65 5f 62 79 74 65 5f 65 |0.} thre|e_byte_e|
|00004420| 6e 75 6d 5f 74 3b 0d 0d | 23 69 66 20 64 65 66 69 |num_t;..|#if defi|
|00004430| 6e 65 64 20 28 70 6f 77 | 65 72 63 29 20 7c 7c 20 |ned (pow|erc) || |
|00004440| 64 65 66 69 6e 65 64 20 | 28 5f 5f 70 6f 77 65 72 |defined |(__power|
|00004450| 29 0d 23 70 72 61 67 6d | 61 20 61 6c 69 67 6e 3d |).#pragm|a align=|
|00004460| 6d 61 63 36 38 6b 0d 23 | 65 6e 64 69 66 0d 73 74 |mac68k.#|endif.st|
|00004470| 72 75 63 74 20 74 65 73 | 74 31 0d 7b 0d 09 6f 6e |ruct tes|t1.{..on|
|00004480| 65 5f 62 79 74 65 5f 65 | 6e 75 6d 5f 74 09 09 6d |e_byte_e|num_t..m|
|00004490| 65 6d 31 3b 0d 09 74 77 | 6f 5f 62 79 74 65 5f 65 |em1;..tw|o_byte_e|
|000044a0| 6e 75 6d 5f 74 09 09 6d | 65 6d 32 3b 0d 09 74 68 |num_t..m|em2;..th|
|000044b0| 72 65 65 5f 62 79 74 65 | 5f 65 6e 75 6d 5f 74 09 |ree_byte|_enum_t.|
|000044c0| 6d 65 6d 33 3b 0d 7d 3b | 0d 23 69 66 20 64 65 66 |mem3;.};|.#if def|
|000044d0| 69 6e 65 64 20 28 70 6f | 77 65 72 63 29 20 7c 7c |ined (po|werc) |||
|000044e0| 20 64 65 66 69 6e 65 64 | 20 28 5f 5f 70 6f 77 65 | defined| (__powe|
|000044f0| 72 63 29 0d 23 70 72 61 | 67 6d 61 20 61 6c 69 67 |rc).#pra|gma alig|
|00004500| 6e 20 72 65 73 65 74 20 | 2f 2f 20 6f 72 20 77 68 |n reset |// or wh|
|00004510| 61 74 65 76 65 72 20 69 | 74 20 69 73 0d 23 65 6e |atever i|t is.#en|
|00004520| 64 69 66 0d 0d 54 68 65 | 20 24 31 30 2c 30 30 30 |dif..The| $10,000|
|00004530| 2c 30 30 30 20 71 75 65 | 73 74 69 6f 6e 20 2d 2d |,000 que|stion --|
|00004540| 20 64 6f 20 74 68 65 73 | 65 20 73 74 72 75 63 74 | do thes|e struct|
|00004550| 75 72 65 73 20 6c 61 79 | 20 6f 75 74 20 6f 6e 20 |ures lay| out on |
|00004560| 65 76 65 72 79 20 4d 61 | 63 0d 43 20 63 6f 6d 70 |every Ma|c.C comp|
|00004570| 69 6c 65 72 20 69 6e 20 | 74 68 69 73 20 77 61 79 |iler in |this way|
|00004580| 3a 0d 0d 4f 66 66 73 65 | 74 09 09 42 79 74 65 0d |:..Offse|t..Byte.|
|00004590| 66 72 6f 6d 09 09 43 6f | 6e 74 65 6e 74 73 0d 26 |from..Co|ntents.&|
|000045a0| 74 65 73 74 20 31 3a 0d | 2d 20 2d 2d 2d 2d 2d 2d |test 1:.|- ------|
|000045b0| 2d 2d 2d 09 2d 2d 2d 2d | 2d 2d 2d 2d 0d 30 78 30 |---.----|----.0x0|
|000045c0| 30 30 30 30 30 30 30 3a | 09 6d 65 6d 31 0d 30 78 |0000000:|.mem1.0x|
|000045d0| 30 30 30 30 30 30 30 31 | 3a 09 3c 70 61 64 3e 0d |00000001|:.<pad>.|
|000045e0| 30 78 30 30 30 30 30 30 | 30 32 3a 09 6d 65 6d 32 |0x000000|02:.mem2|
|000045f0| 0d 30 78 30 30 30 30 30 | 30 30 33 3a 09 6d 65 6d |.0x00000|003:.mem|
|00004600| 32 0d 30 78 30 30 30 30 | 30 30 30 34 3a 09 6d 65 |2.0x0000|0004:.me|
|00004610| 6d 33 0d 30 78 30 30 30 | 30 30 30 30 35 3a 09 6d |m3.0x000|00005:.m|
|00004620| 65 6d 33 0d 30 78 30 30 | 30 30 30 30 30 36 3a 09 |em3.0x00|000006:.|
|00004630| 6d 65 6d 33 0d 30 78 30 | 30 30 30 30 30 30 37 3a |mem3.0x0|0000007:|
|00004640| 09 6d 65 6d 33 0d 0d 48 | 6f 77 20 61 62 6f 75 74 |.mem3..H|ow about|
|00004650| 20 73 74 61 63 6b 20 61 | 6c 69 67 6e 6d 65 6e 74 | stack a|lignment|
|00004660| 3f 20 49 66 20 49 20 64 | 65 63 6c 61 72 65 20 61 |? If I d|eclare a|
|00004670| 20 66 75 6e 63 74 69 6f | 6e 3a 0d 0d 76 6f 69 64 | functio|n:..void|
|00004680| 0d 66 6f 6f 20 28 20 6f | 6e 65 5f 62 79 74 65 5f |.foo ( o|ne_byte_|
|00004690| 65 6e 75 6d 20 61 2c 20 | 74 77 6f 5f 62 79 74 65 |enum a, |two_byte|
|000046a0| 5f 65 6e 75 6d 20 62 2c | 20 74 68 72 65 65 5f 62 |_enum b,| three_b|
|000046b0| 79 74 65 5f 65 6e 75 6d | 20 63 20 29 3b 0d 0d 2e |yte_enum| c );...|
|000046c0| 2e 2e 77 68 61 74 20 77 | 69 6c 6c 20 74 68 65 20 |..what w|ill the |
|000046d0| 73 74 61 63 6b 20 6c 6f | 6f 6b 20 6c 69 6b 65 3f |stack lo|ok like?|
|000046e0| 20 57 69 6c 6c 20 69 74 | 20 62 65 20 74 68 65 20 | Will it| be the |
|000046f0| 73 61 6d 65 20 66 6f 72 | 20 61 6c 6c 20 4d 61 63 |same for| all Mac|
|00004700| 20 43 2f 43 2b 2b 0d 63 | 6f 6d 70 69 6c 65 72 73 | C/C++.c|ompilers|
|00004710| 3f 0d 0d 45 78 61 6d 70 | 6c 65 20 73 74 61 63 6b |?..Examp|le stack|
|00004720| 3a 0d 20 20 20 20 20 20 | 20 20 20 31 20 20 20 32 |:. | 1 2|
|00004730| 20 20 20 33 20 20 20 34 | 20 20 20 35 20 20 20 36 | 3 4| 5 6|
|00004740| 20 20 20 37 20 20 20 38 | 0d 53 50 2d 30 78 38 3a | 7 8|.SP-0x8:|
|00004750| 20 20 63 20 20 20 63 20 | 20 20 63 20 20 20 63 20 | c c | c c |
|00004760| 20 20 62 20 20 20 62 20 | 3c 70 61 64 3e 20 61 0d | b b |<pad> a.|
|00004770| 53 50 3a 0d 0d 28 53 6f | 72 72 79 20 69 66 20 74 |SP:..(So|rry if t|
|00004780| 68 69 73 20 6c 61 73 74 | 20 65 78 61 6d 70 6c 65 |his last| example|
|00004790| 20 69 73 6e 27 74 20 74 | 68 61 74 20 63 6c 65 61 | isn't t|hat clea|
|000047a0| 72 20 2d 2d 20 74 68 65 | 20 73 74 61 63 6b 20 69 |r -- the| stack i|
|000047b0| 73 20 62 65 69 6e 67 0d | 64 69 73 70 6c 61 79 65 |s being.|displaye|
|000047c0| 64 20 69 6e 20 68 69 2d | 6c 6f 2c 20 6c 65 66 74 |d in hi-|lo, left|
|000047d0| 20 74 6f 20 72 69 67 68 | 74 20 6f 72 64 65 72 2c | to righ|t order,|
|000047e0| 20 61 73 73 75 6d 69 6e | 67 20 74 68 61 74 20 61 | assumin|g that a|
|000047f0| 6c 6c 20 70 61 72 61 6d | 65 74 65 72 73 0d 68 61 |ll param|eters.ha|
|00004800| 76 65 20 62 65 65 6e 20 | 70 75 73 68 65 64 20 61 |ve been |pushed a|
|00004810| 6e 64 20 77 65 27 72 65 | 20 61 62 6f 75 74 20 74 |nd we're| about t|
|00004820| 6f 20 4a 53 52 20 74 6f | 20 66 6f 6f 29 0d 0d 54 |o JSR to| foo)..T|
|00004830| 68 61 6e 6b 73 20 69 6e | 20 61 64 76 61 6e 63 65 |hanks in| advance|
|00004840| 20 66 6f 72 20 79 6f 75 | 72 20 69 6e 73 69 67 68 | for you|r insigh|
|00004850| 74 2e 0d 0d 41 6e 64 79 | 20 46 72 61 6e 63 6b 65 |t...Andy| Francke|
|00004860| 0d 0d 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |..++++++|++++++++|
|00004870| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 0d 0d 3e |++++++++|+++++..>|
|00004880| 46 72 6f 6d 20 6d 63 6c | 6f 77 40 73 61 6e 5f 6d |From mcl|ow@san_m|
|00004890| 61 72 63 6f 73 2e 63 73 | 75 73 6d 2e 65 64 75 20 |arcos.cs|usm.edu |
|000048a0| 28 4d 61 72 73 68 61 6c | 6c 20 43 6c 6f 77 29 0d |(Marshal|l Clow).|
|000048b0| 44 61 74 65 3a 20 57 65 | 64 2c 20 31 37 20 41 75 |Date: We|d, 17 Au|
|000048c0| 67 20 31 39 39 34 20 30 | 30 3a 35 33 3a 33 32 20 |g 1994 0|0:53:32 |
|000048d0| 2d 30 38 30 30 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |-0800.Or|ganizati|
|000048e0| 6f 6e 3a 20 41 6c 61 64 | 64 69 6e 20 53 79 73 74 |on: Alad|din Syst|
|000048f0| 65 6d 73 0d 0d 49 6e 20 | 61 72 74 69 63 6c 65 20 |ems..In |article |
|00004900| 3c 61 66 72 61 6e 63 6b | 65 43 75 6e 73 33 4c 2e |<afranck|eCuns3L.|
|00004910| 4d 75 43 40 6e 65 74 63 | 6f 6d 2e 63 6f 6d 3e 2c |MuC@netc|om.com>,|
|00004920| 20 61 66 72 61 6e 63 6b | 65 40 6e 65 74 63 6f 6d | afranck|e@netcom|
|00004930| 2e 63 6f 6d 20 28 41 6e | 64 72 65 77 0d 46 72 61 |.com (An|drew.Fra|
|00004940| 6e 63 6b 65 29 20 77 72 | 6f 74 65 3a 0d 0d 3e 20 |ncke) wr|ote:..> |
|00004950| 49 66 20 49 27 6d 20 6e | 6f 74 20 6d 69 73 74 61 |If I'm n|ot mista|
|00004960| 6b 65 6e 2c 20 74 68 65 | 20 6c 6f 77 65 73 74 20 |ken, the| lowest |
|00004970| 63 6f 6d 6d 6f 6e 20 64 | 65 6e 6f 6d 69 6e 61 74 |common d|enominat|
|00004980| 6f 72 20 66 6f 72 20 65 | 6e 75 6d 20 73 69 7a 65 |or for e|num size|
|00004990| 20 69 73 0d 3e 20 74 68 | 61 74 20 70 72 65 73 65 | is.> th|at prese|
|000049a0| 6e 74 65 64 20 62 79 20 | 4d 50 57 20 36 38 6b 20 |nted by |MPW 68k |
|000049b0| 43 20 2d 2d 20 76 61 72 | 69 61 62 6c 65 20 31 2c |C -- var|iable 1,|
|000049c0| 20 32 2c 20 6f 72 20 34 | 20 62 79 74 65 73 2e 20 | 2, or 4| bytes. |
|000049d0| 4f 74 68 65 72 20 4d 61 | 63 20 43 0d 3e 20 61 6e |Other Ma|c C.> an|
|000049e0| 64 20 43 2b 2b 20 63 6f | 6d 70 69 6c 65 72 73 20 |d C++ co|mpilers |
|000049f0| 73 75 70 70 6f 72 74 20 | 74 68 65 20 41 4e 53 49 |support |the ANSI|
|00004a00| 20 64 65 66 69 6e 69 74 | 69 6f 6e 2c 20 73 69 7a | definit|ion, siz|
|00004a10| 65 6f 66 28 65 6e 75 6d | 29 20 3d 3d 0d 3e 20 73 |eof(enum|) ==.> s|
|00004a20| 69 7a 65 6f 66 28 69 6e | 74 29 2c 20 62 75 74 20 |izeof(in|t), but |
|00004a30| 6e 6f 74 20 4d 50 57 20 | 43 2e 20 41 6c 6c 20 4d |not MPW |C. All M|
|00004a40| 61 63 20 63 6f 6d 70 69 | 6c 65 72 73 20 73 75 70 |ac compi|lers sup|
|00004a50| 70 6f 72 74 20 76 61 72 | 69 61 62 6c 65 20 65 6e |port var|iable en|
|00004a60| 75 6d 0d 3e 20 73 69 7a | 65 20 6a 75 73 74 20 6c |um.> siz|e just l|
|00004a70| 69 6b 65 20 4d 50 57 20 | 43 2e 0d 3e 20 0d 3e 20 |ike MPW |C..> .> |
|00004a80| 49 73 20 74 68 69 73 20 | 73 74 72 69 63 74 6c 79 |Is this |strictly|
|00004a90| 20 63 6f 72 72 65 63 74 | 3f 0d 3e 0d 20 20 20 4e | correct|?.>. N|
|00004aa0| 6f 2e 20 49 74 27 73 20 | 77 72 6f 6e 67 20 69 6e |o. It's |wrong in|
|00004ab0| 20 73 65 76 65 72 61 6c | 20 61 72 65 61 73 2e 0d | several| areas..|
|00004ac0| 0d 3e 20 0d 5b 20 63 6f | 64 65 20 64 65 6c 65 74 |.> .[ co|de delet|
|00004ad0| 65 64 20 5d 0d 3e 20 0d | 3e 20 54 68 65 20 24 31 |ed ].> .|> The $1|
|00004ae0| 30 2c 30 30 30 2c 30 30 | 30 20 71 75 65 73 74 69 |0,000,00|0 questi|
|00004af0| 6f 6e 20 2d 2d 20 64 6f | 20 74 68 65 73 65 20 73 |on -- do| these s|
|00004b00| 74 72 75 63 74 75 72 65 | 73 20 6c 61 79 20 6f 75 |tructure|s lay ou|
|00004b10| 74 20 6f 6e 20 65 76 65 | 72 79 20 4d 61 63 0d 3e |t on eve|ry Mac.>|
|00004b20| 20 43 20 63 6f 6d 70 69 | 6c 65 72 20 69 6e 20 74 | C compi|ler in t|
|00004b30| 68 69 73 20 77 61 79 3a | 0d 3e 20 0d 5b 20 6d 6f |his way:|.> .[ mo|
|00004b40| 72 65 20 63 6f 64 65 20 | 64 65 6c 65 74 65 64 20 |re code |deleted |
|00004b50| 5d 0d 0d 4e 6f 2e 20 44 | 69 66 66 65 72 65 6e 74 |]..No. D|ifferent|
|00004b60| 20 63 6f 6d 70 69 6c 65 | 72 73 20 61 6c 6c 6f 63 | compile|rs alloc|
|00004b70| 61 74 65 64 20 73 69 7a | 65 73 20 66 6f 72 20 65 |ated siz|es for e|
|00004b80| 6e 75 6d 73 20 64 69 66 | 66 65 72 65 6e 74 6c 79 |nums dif|ferently|
|00004b90| 2e 20 49 20 62 65 6c 69 | 65 76 65 0d 74 68 61 74 |. I beli|eve.that|
|00004ba0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 69 | the fol|lowing i|
|00004bb0| 73 20 74 72 75 65 3a 0d | 0d 31 29 20 4d 50 57 20 |s true:.|.1) MPW |
|00004bc0| 43 20 28 36 38 4b 29 20 | 2d 2d 20 65 6e 75 6d 73 |C (68K) |-- enums|
|00004bd0| 20 61 72 65 20 34 20 62 | 79 74 65 73 0d 0d 32 29 | are 4 b|ytes..2)|
|00004be0| 20 54 68 69 6e 6b 20 43 | 20 28 36 38 4b 29 20 2d | Think C| (68K) -|
|00004bf0| 2d 20 65 6e 75 6d 73 20 | 61 72 65 20 31 2c 20 32 |- enums |are 1, 2|
|00004c00| 2c 20 6f 72 20 34 20 62 | 79 74 65 73 20 28 62 61 |, or 4 b|ytes (ba|
|00004c10| 73 65 64 20 6f 6e 20 76 | 61 6c 75 65 73 29 20 65 |sed on v|alues) e|
|00004c20| 78 63 65 70 74 20 69 66 | 0d 74 68 65 20 22 45 6e |xcept if|.the "En|
|00004c30| 75 6d 73 20 61 72 65 20 | 61 6c 77 61 79 73 20 69 |ums are |always i|
|00004c40| 6e 74 73 22 20 70 72 65 | 66 65 72 65 6e 63 65 20 |nts" pre|ference |
|00004c50| 69 73 20 63 68 65 63 6b | 65 64 2c 20 69 6e 20 77 |is check|ed, in w|
|00004c60| 68 69 63 68 20 63 61 73 | 65 20 74 68 65 79 20 61 |hich cas|e they a|
|00004c70| 72 65 0d 32 20 6f 72 20 | 34 20 62 79 74 65 73 20 |re.2 or |4 bytes |
|00004c80| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 68 6f 77 |dependin|g on how|
|00004c90| 20 62 69 67 20 79 6f 75 | 72 20 69 6e 74 73 20 61 | big you|r ints a|
|00004ca0| 72 65 2e 0d 0d 33 29 20 | 4d 65 74 72 6f 77 65 72 |re...3) |Metrower|
|00004cb0| 6b 73 20 43 20 28 36 38 | 4b 29 20 2d 2d 20 73 61 |ks C (68|K) -- sa|
|00004cc0| 6d 65 20 61 73 20 54 68 | 69 6e 6b 20 43 20 28 36 |me as Th|ink C (6|
|00004cd0| 38 4b 29 2e 0d 0d 34 29 | 20 4d 65 74 72 6f 77 65 |8K)...4)| Metrowe|
|00004ce0| 72 6b 73 20 43 20 28 50 | 50 43 29 20 2d 2d 20 65 |rks C (P|PC) -- e|
|00004cf0| 6e 75 6d 73 20 61 72 65 | 20 31 2c 20 32 2c 20 6f |nums are| 1, 2, o|
|00004d00| 72 20 34 20 62 79 74 65 | 73 20 28 62 61 73 65 64 |r 4 byte|s (based|
|00004d10| 20 6f 6e 20 76 61 6c 75 | 65 73 29 0d 65 78 63 65 | on valu|es).exce|
|00004d20| 70 74 20 69 66 20 74 68 | 65 20 22 45 6e 75 6d 73 |pt if th|e "Enums|
|00004d30| 20 61 72 65 20 61 6c 77 | 61 79 73 20 69 6e 74 73 | are alw|ays ints|
|00004d40| 22 20 70 72 65 66 65 72 | 65 6e 63 65 20 69 73 20 |" prefer|ence is |
|00004d50| 63 68 65 63 6b 65 64 2c | 20 69 6e 20 77 68 69 63 |checked,| in whic|
|00004d60| 68 20 63 61 73 65 0d 74 | 68 65 79 20 61 72 65 20 |h case.t|hey are |
|00004d70| 34 20 62 79 74 65 73 2e | 0d 0d 35 29 20 50 50 43 |4 bytes.|..5) PPC|
|00004d80| 43 20 28 41 70 70 6c 65 | 27 73 20 4d 50 57 20 62 |C (Apple|'s MPW b|
|00004d90| 61 73 65 64 20 50 50 43 | 20 63 6f 6d 70 69 6c 65 |ased PPC| compile|
|00004da0| 72 29 20 2d 2d 20 49 20 | 64 6f 6e 27 74 20 6b 6e |r) -- I |don't kn|
|00004db0| 6f 77 2e 0d 36 29 20 41 | 70 70 6c 65 27 73 20 6e |ow..6) A|pple's n|
|00004dc0| 65 77 20 50 50 43 20 43 | 20 63 6f 6d 70 69 6c 65 |ew PPC C| compile|
|00004dd0| 72 20 28 42 65 74 61 20 | 6f 6e 20 45 54 4f 20 23 |r (Beta |on ETO #|
|00004de0| 31 35 29 20 2d 2d 20 49 | 20 64 6f 6e 27 74 20 6b |15) -- I| don't k|
|00004df0| 6e 6f 77 0d 37 29 20 4d | 6f 74 6f 72 6f 6c 61 20 |now.7) M|otorola |
|00004e00| 43 20 28 50 50 43 29 20 | 2d 2d 20 49 20 64 6f 6e |C (PPC) |-- I don|
|00004e10| 27 74 20 6b 6e 6f 77 0d | 38 29 20 41 62 73 6f 66 |'t know.|8) Absof|
|00004e20| 74 20 43 20 28 50 50 43 | 29 20 2d 2d 20 49 20 64 |t C (PPC|) -- I d|
|00004e30| 6f 6e 27 74 20 6b 6e 6f | 77 0d 0d 5b 20 49 27 6d |on't kno|w..[ I'm|
|00004e40| 20 73 75 72 65 20 49 20 | 66 6f 72 67 6f 74 20 73 | sure I |forgot s|
|00004e50| 6f 6d 65 6f 6e 65 2e 20 | 5d 0d 0d 54 68 65 20 41 |omeone. |]..The A|
|00004e60| 4e 53 49 20 73 70 65 63 | 20 28 66 72 6f 6d 20 6d |NSI spec| (from m|
|00004e70| 65 6d 6f 72 79 2c 20 73 | 6f 20 64 6f 6e 27 74 20 |emory, s|o don't |
|00004e80| 66 6c 61 6d 65 20 6d 65 | 20 66 6f 72 20 77 6f 72 |flame me| for wor|
|00004e90| 64 61 67 65 29 20 73 61 | 79 73 20 74 68 61 74 20 |dage) sa|ys that |
|00004ea0| 65 6e 75 6d 73 0d 6d 75 | 73 74 20 62 65 20 22 63 |enums.mu|st be "c|
|00004eb0| 6f 6d 70 61 74 69 62 6c | 65 20 77 69 74 68 20 69 |ompatibl|e with i|
|00004ec0| 6e 74 65 67 65 72 20 74 | 79 70 65 22 2e 20 54 68 |nteger t|ype". Th|
|00004ed0| 65 20 72 65 73 74 20 69 | 73 20 75 70 20 74 6f 20 |e rest i|s up to |
|00004ee0| 74 68 65 20 63 6f 6d 70 | 69 6c 65 72 0d 77 72 69 |the comp|iler.wri|
|00004ef0| 74 65 72 2e 0d 0d 54 68 | 69 73 20 69 73 20 6f 6e |ter...Th|is is on|
|00004f00| 65 20 6f 66 20 74 68 65 | 20 6e 6f 6e 2d 70 6f 72 |e of the| non-por|
|00004f10| 74 61 62 6c 65 20 61 73 | 70 65 63 74 73 20 6f 66 |table as|pects of|
|00004f20| 20 43 2e 0d 0d 2d 2d 20 | 4d 61 72 73 68 61 6c 6c | C...-- |Marshall|
|00004f30| 0d 0d 2d 2d 20 0d 4d 61 | 72 73 68 61 6c 6c 20 43 |..-- .Ma|rshall C|
|00004f40| 6c 6f 77 0d 41 6c 61 64 | 64 69 6e 20 53 79 73 74 |low.Alad|din Syst|
|00004f50| 65 6d 73 0d 6d 63 6c 6f | 77 40 73 61 6e 5f 6d 61 |ems.mclo|w@san_ma|
|00004f60| 72 63 6f 73 2e 63 73 75 | 73 6d 2e 65 64 75 0d 0d |rcos.csu|sm.edu..|
|00004f70| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004f80| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00004f90| 6f 6d 20 62 65 63 6b 65 | 72 40 58 65 6e 6f 6e 2e |om becke|r@Xenon.|
|00004fa0| 53 74 61 6e 66 6f 72 64 | 2e 45 44 55 20 28 44 65 |Stanford|.EDU (De|
|00004fb0| 6e 69 7a 65 6e 20 6f 66 | 20 74 68 65 20 44 65 65 |nizen of| the Dee|
|00004fc0| 70 29 0d 44 61 74 65 3a | 20 31 37 20 41 75 67 20 |p).Date:| 17 Aug |
|00004fd0| 31 39 39 34 20 31 36 3a | 32 32 3a 31 36 20 47 4d |1994 16:|22:16 GM|
|00004fe0| 54 0d 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|00004ff0| 43 6f 6d 70 75 74 65 72 | 20 53 63 69 65 6e 63 65 |Computer| Science|
|00005000| 20 44 65 70 61 72 74 6d | 65 6e 74 2c 20 53 74 61 | Departm|ent, Sta|
|00005010| 6e 66 6f 72 64 20 55 6e | 69 76 65 72 73 69 74 79 |nford Un|iversity|
|00005020| 2e 0d 0d 49 6e 20 61 72 | 74 69 63 6c 65 20 3c 6d |...In ar|ticle <m|
|00005030| 63 6c 6f 77 2d 31 37 30 | 38 39 34 30 30 35 33 33 |clow-170|89400533|
|00005040| 32 30 30 30 31 40 6c 70 | 6d 38 2e 63 73 75 73 6d |20001@lp|m8.csusm|
|00005050| 2e 65 64 75 3e 2c 0d 4d | 61 72 73 68 61 6c 6c 20 |.edu>,.M|arshall |
|00005060| 43 6c 6f 77 20 3c 6d 63 | 6c 6f 77 40 73 61 6e 5f |Clow <mc|low@san_|
|00005070| 6d 61 72 63 6f 73 2e 63 | 73 75 73 6d 2e 65 64 75 |marcos.c|susm.edu|
|00005080| 3e 20 77 72 6f 74 65 3a | 0d 3e 0d 3e 54 68 65 20 |> wrote:|.>.>The |
|00005090| 41 4e 53 49 20 73 70 65 | 63 20 28 66 72 6f 6d 20 |ANSI spe|c (from |
|000050a0| 6d 65 6d 6f 72 79 2c 20 | 73 6f 20 64 6f 6e 27 74 |memory, |so don't|
|000050b0| 20 66 6c 61 6d 65 20 6d | 65 20 66 6f 72 20 77 6f | flame m|e for wo|
|000050c0| 72 64 61 67 65 29 20 73 | 61 79 73 20 74 68 61 74 |rdage) s|ays that|
|000050d0| 20 65 6e 75 6d 73 0d 3e | 6d 75 73 74 20 62 65 20 | enums.>|must be |
|000050e0| 22 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 |"compati|ble with|
|000050f0| 20 69 6e 74 65 67 65 72 | 20 74 79 70 65 22 2e 20 | integer| type". |
|00005100| 54 68 65 20 72 65 73 74 | 20 69 73 20 75 70 20 74 |The rest| is up t|
|00005110| 6f 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 0d 3e |o the co|mpiler.>|
|00005120| 77 72 69 74 65 72 2e 0d | 3e 0d 3e 54 68 69 73 20 |writer..|>.>This |
|00005130| 69 73 20 6f 6e 65 20 6f | 66 20 74 68 65 20 6e 6f |is one o|f the no|
|00005140| 6e 2d 70 6f 72 74 61 62 | 6c 65 20 61 73 70 65 63 |n-portab|le aspec|
|00005150| 74 73 20 6f 66 20 43 2e | 0d 3e 0d 3e 2d 2d 20 4d |ts of C.|.>.>-- M|
|00005160| 61 72 73 68 61 6c 6c 0d | 3e 0d 0d 3e 46 72 6f 6d |arshall.|>..>From|
|00005170| 20 4b 26 52 20 49 49 2c | 20 41 38 2e 34 3a 0d 09 | K&R II,| A8.4:..|
|00005180| 54 68 65 20 69 64 65 6e | 74 69 66 69 65 72 73 20 |The iden|tifiers |
|00005190| 69 6e 20 61 6e 20 65 6e | 75 6d 65 72 61 74 6f 72 |in an en|umerator|
|000051a0| 20 6c 69 73 74 20 61 72 | 65 20 64 65 63 6c 61 72 | list ar|e declar|
|000051b0| 65 64 20 61 73 20 63 6f | 6e 73 74 61 6e 74 73 0d |ed as co|nstants.|
|000051c0| 09 6f 66 20 74 79 70 65 | 20 69 6e 74 2e 2e 2e 0d |.of type| int....|
|000051d0| 0d 53 6f 20 74 68 65 72 | 65 20 79 6f 75 20 68 61 |.So ther|e you ha|
|000051e0| 76 65 20 69 74 2e 20 20 | 49 6e 20 73 74 72 69 63 |ve it. |In stric|
|000051f0| 74 20 41 4e 53 49 20 43 | 2c 20 65 6e 75 6d 73 20 |t ANSI C|, enums |
|00005200| 73 68 6f 75 6c 64 20 74 | 61 6b 65 20 75 70 20 74 |should t|ake up t|
|00005210| 68 65 20 73 61 6d 65 0d | 73 70 61 63 65 20 61 73 |he same.|space as|
|00005220| 20 61 6e 20 69 6e 74 20 | 6f 6e 20 74 68 65 20 6d | an int |on the m|
|00005230| 61 63 68 69 6e 65 20 28 | 69 2e 65 2e 20 32 20 6f |achine (|i.e. 2 o|
|00005240| 72 20 34 20 62 79 74 65 | 73 2c 20 64 65 70 65 6e |r 4 byte|s, depen|
|00005250| 64 69 6e 67 20 6f 6e 20 | 79 6f 75 72 0d 73 65 74 |ding on |your.set|
|00005260| 74 69 6e 67 73 20 61 6e | 64 2f 6f 72 20 63 6f 6d |tings an|d/or com|
|00005270| 70 69 6c 65 72 29 2e 20 | 20 49 74 27 73 20 6f 6e |piler). | It's on|
|00005280| 6c 79 20 6e 6f 6e 2d 70 | 6f 72 74 61 62 6c 65 20 |ly non-p|ortable |
|00005290| 69 6e 20 74 68 65 20 73 | 65 6e 73 65 20 74 68 61 |in the s|ense tha|
|000052a0| 74 0d 64 69 66 66 65 72 | 65 6e 74 20 63 6f 6d 70 |t.differ|ent comp|
|000052b0| 69 6c 65 72 73 20 6d 61 | 79 20 68 61 76 65 20 64 |ilers ma|y have d|
|000052c0| 69 66 66 65 72 65 6e 74 | 20 73 69 7a 65 73 20 66 |ifferent| sizes f|
|000052d0| 6f 72 20 69 6e 74 3b 20 | 68 6f 77 65 76 65 72 20 |or int; |however |
|000052e0| 6f 6e 63 65 20 74 68 65 | 0d 63 68 6f 69 63 65 20 |once the|.choice |
|000052f0| 6f 66 20 69 6e 74 20 73 | 69 7a 65 20 69 73 20 6d |of int s|ize is m|
|00005300| 61 64 65 2c 20 74 68 65 | 72 65 20 69 73 20 6e 6f |ade, the|re is no|
|00005310| 20 6c 61 74 69 74 75 64 | 65 20 66 6f 72 20 63 68 | latitud|e for ch|
|00005320| 6f 6f 73 69 6e 67 20 68 | 6f 77 20 74 6f 0d 64 65 |oosing h|ow to.de|
|00005330| 61 6c 20 77 69 74 68 20 | 65 6e 75 6d 73 2e 0d 0d |al with |enums...|
|00005340| 2d 4a 6f 6e 0d 0d 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |-Jon..++|++++++++|
|00005350| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005360| 2b 0d 0d 3e 46 72 6f 6d | 20 4c 61 72 73 2e 46 61 |+..>From| Lars.Fa|
|00005370| 72 6d 40 6e 74 73 2e 6d | 68 2e 73 65 20 28 4c 61 |rm@nts.m|h.se (La|
|00005380| 72 73 20 46 61 72 6d 29 | 0d 44 61 74 65 3a 20 46 |rs Farm)|.Date: F|
|00005390| 72 69 2c 20 31 39 20 41 | 75 67 20 31 39 39 34 20 |ri, 19 A|ug 1994 |
|000053a0| 31 30 3a 30 38 3a 31 32 | 20 2b 30 31 30 30 0d 4f |10:08:12| +0100.O|
|000053b0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 4d 69 64 |rganizat|ion: Mid|
|000053c0| 20 53 77 65 64 65 6e 20 | 55 6e 69 76 65 72 73 69 | Sweden |Universi|
|000053d0| 74 79 0d 0d 49 6e 20 61 | 72 74 69 63 6c 65 20 3c |ty..In a|rticle <|
|000053e0| 33 32 74 64 66 6f 24 67 | 6e 32 40 54 69 6d 65 73 |32tdfo$g|n2@Times|
|000053f0| 2e 53 74 61 6e 66 6f 72 | 64 2e 45 44 55 3e 2c 20 |.Stanfor|d.EDU>, |
|00005400| 62 65 63 6b 65 72 40 58 | 65 6e 6f 6e 2e 53 74 61 |becker@X|enon.Sta|
|00005410| 6e 66 6f 72 64 2e 45 44 | 55 0d 28 44 65 6e 69 7a |nford.ED|U.(Deniz|
|00005420| 65 6e 20 6f 66 20 74 68 | 65 20 44 65 65 70 29 20 |en of th|e Deep) |
|00005430| 77 72 6f 74 65 3a 0d 0d | 3e 20 46 72 6f 6d 20 4b |wrote:..|> From K|
|00005440| 26 52 20 49 49 2c 20 41 | 38 2e 34 3a 0d 3e 20 20 |&R II, A|8.4:.> |
|00005450| 20 20 20 20 20 20 20 54 | 68 65 20 69 64 65 6e 74 | T|he ident|
|00005460| 69 66 69 65 72 73 20 69 | 6e 20 61 6e 20 65 6e 75 |ifiers i|n an enu|
|00005470| 6d 65 72 61 74 6f 72 20 | 6c 69 73 74 20 61 72 65 |merator |list are|
|00005480| 20 64 65 63 6c 61 72 65 | 64 20 61 73 20 63 6f 6e | declare|d as con|
|00005490| 73 74 61 6e 74 73 0d 3e | 20 20 20 20 20 20 20 20 |stants.>| |
|000054a0| 20 6f 66 20 74 79 70 65 | 20 69 6e 74 2e 2e 2e 0d | of type| int....|
|000054b0| 3e 20 0d 3e 20 53 6f 20 | 74 68 65 72 65 20 79 6f |> .> So |there yo|
|000054c0| 75 20 68 61 76 65 20 69 | 74 2e 20 20 49 6e 20 73 |u have i|t. In s|
|000054d0| 74 72 69 63 74 20 41 4e | 53 49 20 43 2c 20 65 6e |trict AN|SI C, en|
|000054e0| 75 6d 73 20 73 68 6f 75 | 6c 64 20 74 61 6b 65 20 |ums shou|ld take |
|000054f0| 75 70 20 74 68 65 20 73 | 61 6d 65 0d 3e 20 73 70 |up the s|ame.> sp|
|00005500| 61 63 65 20 61 73 20 61 | 6e 20 69 6e 74 20 6f 6e |ace as a|n int on|
|00005510| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 28 69 2e | the mac|hine (i.|
|00005520| 65 2e 20 32 20 6f 72 20 | 34 20 62 79 74 65 73 2c |e. 2 or |4 bytes,|
|00005530| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 79 6f | dependi|ng on yo|
|00005540| 75 72 0d 0d 49 6e 20 43 | 20 70 65 72 68 61 70 73 |ur..In C| perhaps|
|00005550| 2c 20 62 75 74 20 6e 6f | 74 20 73 6f 20 69 6e 20 |, but no|t so in |
|00005560| 43 2b 2b 2e 20 65 6e 75 | 6d 20 69 73 20 6e 6f 74 |C++. enu|m is not|
|00005570| 20 69 6e 74 2e 20 41 6e | 20 65 6e 75 6d 20 63 61 | int. An| enum ca|
|00005580| 6e 20 62 65 0d 69 6e 69 | 74 69 61 6c 69 7a 65 64 |n be.ini|tialized|
|00005590| 20 62 79 20 61 20 63 6f | 6e 73 74 61 6e 74 20 65 | by a co|nstant e|
|000055a0| 78 70 72 65 73 73 69 6f | 6e 20 6f 66 20 69 6e 74 |xpressio|n of int|
|000055b0| 65 67 72 61 6c 20 74 79 | 70 65 2e 20 41 6e 20 65 |egral ty|pe. An e|
|000055c0| 6e 75 6d 20 77 69 6c 6c | 0d 73 69 6c 65 6e 74 6c |num will|.silentl|
|000055d0| 79 20 62 65 20 63 6f 6e | 76 65 72 74 65 64 20 74 |y be con|verted t|
|000055e0| 6f 20 61 6e 20 69 6e 74 | 20 77 68 65 72 65 20 61 |o an int| where a|
|000055f0| 6e 20 69 6e 74 20 69 73 | 20 65 78 70 65 63 74 65 |n int is| expecte|
|00005600| 64 20 28 7c 2c 20 26 2c | 20 2b 20 2e 2e 2e 29 20 |d (|, &,| + ...) |
|00005610| 62 75 74 0d 61 6e 20 69 | 6e 74 20 77 69 6c 6c 20 |but.an i|nt will |
|00005620| 6e 6f 74 20 73 69 6c 65 | 6e 74 6c 79 20 62 65 20 |not sile|ntly be |
|00005630| 63 6f 6e 76 65 72 74 65 | 64 20 74 6f 20 61 6e 20 |converte|d to an |
|00005640| 65 6e 75 6d 2c 20 62 65 | 63 61 75 73 65 20 6e 6f |enum, be|cause no|
|00005650| 74 68 69 6e 67 20 73 61 | 79 73 20 69 74 0d 77 69 |thing sa|ys it.wi|
|00005660| 6c 6c 20 66 69 74 20 69 | 6e 20 74 68 65 20 73 70 |ll fit i|n the sp|
|00005670| 61 63 65 20 61 6c 6c 6f | 63 61 74 65 64 20 66 6f |ace allo|cated fo|
|00005680| 72 20 74 68 65 20 65 6e | 75 6d 2e 20 43 61 73 74 |r the en|um. Cast|
|00005690| 20 6e 65 65 64 65 64 2e | 0d 0d 41 6e 20 65 6e 75 | needed.|..An enu|
|000056a0| 6d 20 69 73 20 72 65 71 | 75 69 72 65 64 20 74 6f |m is req|uired to|
|000056b0| 20 68 61 76 65 20 72 6f | 6f 6d 20 66 6f 72 20 22 | have ro|om for "|
|000056c0| 2e 2e 2e 74 68 65 20 6e | 65 61 72 65 73 74 20 6c |...the n|earest l|
|000056d0| 61 72 67 65 72 20 62 69 | 6e 61 72 79 20 70 6f 77 |arger bi|nary pow|
|000056e0| 65 72 0d 6d 69 6e 75 73 | 20 31 20 61 6e 64 20 64 |er.minus| 1 and d|
|000056f0| 6f 77 6e 20 74 6f 20 30 | 2e 2e 2e 22 2e 20 53 6f |own to 0|...". So|
|00005700| 20 65 6e 75 6d 20 7b 20 | 66 61 6c 73 65 2c 74 72 | enum { |false,tr|
|00005710| 75 65 20 7d 20 69 73 20 | 6f 6e 6c 79 20 72 65 71 |ue } is |only req|
|00005720| 75 69 72 65 64 20 74 6f | 0d 61 6c 6c 6f 63 61 74 |uired to|.allocat|
|00005730| 65 20 6f 6e 65 20 62 69 | 74 20 66 6f 72 20 74 68 |e one bi|t for th|
|00005740| 65 20 76 61 6c 75 65 2e | 20 5b 41 52 4d 20 2d 20 |e value.| [ARM - |
|00005750| 41 4e 53 49 2f 49 53 4f | 20 72 65 73 6f 6c 75 74 |ANSI/ISO| resolut|
|00005760| 69 6f 6e 73 20 72 2e 37 | 2e 32 5d 2e 0d 52 65 61 |ions r.7|.2]..Rea|
|00005770| 6c 69 73 74 69 63 61 6c | 6c 79 20 74 68 69 73 20 |listical|ly this |
|00005780| 6d 65 61 6e 73 20 74 68 | 61 74 20 61 6e 20 65 6e |means th|at an en|
|00005790| 75 6d 20 77 69 6c 6c 20 | 62 65 20 61 6c 6c 6f 63 |um will |be alloc|
|000057a0| 61 74 65 64 20 31 2c 20 | 32 20 6f 72 20 34 20 62 |ated 1, |2 or 4 b|
|000057b0| 79 74 65 73 0d 64 65 70 | 65 6e 64 69 6e 67 20 6f |ytes.dep|ending o|
|000057c0| 6e 20 65 6e 75 6d 65 72 | 61 74 65 64 20 63 6f 6e |n enumer|ated con|
|000057d0| 73 74 61 6e 74 73 20 61 | 6e 64 20 77 68 61 74 65 |stants a|nd whate|
|000057e0| 76 65 72 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |ver the |compiler|
|000057f0| 73 20 61 75 74 68 6f 72 | 20 73 65 65 73 0d 72 65 |s author| sees.re|
|00005800| 61 73 6f 6e 61 62 6c 65 | 2e 20 49 6e 20 61 6e 79 |asonable|. In any|
|00005810| 20 65 76 65 6e 74 20 74 | 68 65 20 73 70 61 63 65 | event t|he space|
|00005820| 20 61 6c 6c 6f 63 61 74 | 65 64 20 74 6f 20 61 6e | allocat|ed to an|
|00005830| 20 65 6e 75 6d 20 6d 61 | 79 20 62 65 20 73 6d 61 | enum ma|y be sma|
|00005840| 6c 6c 65 72 0d 74 68 61 | 6e 20 77 68 61 74 20 69 |ller.tha|n what i|
|00005850| 73 20 6e 65 65 64 65 64 | 20 66 6f 72 20 61 6e 20 |s needed| for an |
|00005860| 69 6e 74 20 70 72 6f 76 | 69 64 65 64 20 69 74 20 |int prov|ided it |
|00005870| 68 61 73 20 72 6f 6f 6d | 20 66 6f 72 20 61 6e 79 |has room| for any|
|00005880| 20 6f 66 20 74 68 65 20 | 65 6e 75 6d 0d 63 6f 6e | of the |enum.con|
|00005890| 73 74 61 6e 74 73 2e 0d | 0d 4c 61 72 73 0d 0d 2d |stants..|.Lars..-|
|000058a0| 2d 20 0d 4c 61 72 73 2e | 46 61 72 6d 40 6e 74 73 |- .Lars.|Farm@nts|
|000058b0| 2e 6d 68 2e 73 65 0d 0d | 2b 2b 2b 2b 2b 2b 2b 2b |.mh.se..|++++++++|
|000058c0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000058d0| 2b 2b 2b 0d 0d 3e 46 72 | 6f 6d 20 70 68 69 6c 73 |+++..>Fr|om phils|
|000058e0| 40 62 65 64 66 6f 72 64 | 2e 73 79 6d 61 6e 74 65 |@bedford|.symante|
|000058f0| 63 2e 63 6f 6d 20 28 50 | 68 69 6c 20 53 68 61 70 |c.com (P|hil Shap|
|00005900| 69 72 6f 29 0d 44 61 74 | 65 3a 20 46 72 69 2c 20 |iro).Dat|e: Fri, |
|00005910| 31 39 20 41 75 67 20 31 | 39 39 34 20 31 32 3a 33 |19 Aug 1|994 12:3|
|00005920| 36 3a 35 31 20 2d 30 34 | 30 30 0d 4f 72 67 61 6e |6:51 -04|00.Organ|
|00005930| 69 7a 61 74 69 6f 6e 3a | 20 53 79 6d 61 6e 74 65 |ization:| Symante|
|00005940| 63 20 43 6f 72 70 2e 0d | 0d 7c 20 4e 6f 2e 20 44 |c Corp..|.| No. D|
|00005950| 69 66 66 65 72 65 6e 74 | 20 63 6f 6d 70 69 6c 65 |ifferent| compile|
|00005960| 72 73 20 61 6c 6c 6f 63 | 61 74 65 64 20 73 69 7a |rs alloc|ated siz|
|00005970| 65 73 20 66 6f 72 20 65 | 6e 75 6d 73 20 64 69 66 |es for e|nums dif|
|00005980| 66 65 72 65 6e 74 6c 79 | 2e 20 49 20 62 65 6c 69 |ferently|. I beli|
|00005990| 65 76 65 0d 7c 20 74 68 | 61 74 20 74 68 65 20 66 |eve.| th|at the f|
|000059a0| 6f 6c 6c 6f 77 69 6e 67 | 20 69 73 20 74 72 75 65 |ollowing| is true|
|000059b0| 3a 0d 0d 4f 6e 6c 79 20 | 73 6c 69 67 68 74 6c 79 |:..Only |slightly|
|000059c0| 20 6f 66 66 2c 20 77 69 | 74 68 20 72 65 73 70 65 | off, wi|th respe|
|000059d0| 63 74 20 74 6f 20 22 65 | 6e 75 6d 73 20 61 72 65 |ct to "e|nums are|
|000059e0| 20 61 6c 77 61 79 73 20 | 69 6e 74 73 22 2c 20 73 | always |ints", s|
|000059f0| 65 65 20 62 65 6c 6f 77 | 2a 2e 0d 0d 7c 20 31 29 |ee below|*...| 1)|
|00005a00| 20 4d 50 57 20 43 20 28 | 36 38 4b 29 20 2d 2d 20 | MPW C (|68K) -- |
|00005a10| 65 6e 75 6d 73 20 61 72 | 65 20 34 20 62 79 74 65 |enums ar|e 4 byte|
|00005a20| 73 0d 7c 20 0d 7c 20 32 | 29 20 54 68 69 6e 6b 20 |s.| .| 2|) Think |
|00005a30| 43 20 28 36 38 4b 29 20 | 2d 2d 20 65 6e 75 6d 73 |C (68K) |-- enums|
|00005a40| 20 61 72 65 20 31 2c 20 | 32 2c 20 6f 72 20 34 20 | are 1, |2, or 4 |
|00005a50| 62 79 74 65 73 20 28 62 | 61 73 65 64 20 6f 6e 20 |bytes (b|ased on |
|00005a60| 76 61 6c 75 65 73 29 20 | 65 78 63 65 70 74 20 69 |values) |except i|
|00005a70| 66 0d 7c 20 74 68 65 20 | 22 45 6e 75 6d 73 20 61 |f.| the |"Enums a|
|00005a80| 72 65 20 61 6c 77 61 79 | 73 20 69 6e 74 73 22 20 |re alway|s ints" |
|00005a90| 70 72 65 66 65 72 65 6e | 63 65 20 69 73 20 63 68 |preferen|ce is ch|
|00005aa0| 65 63 6b 65 64 2c 20 69 | 6e 20 77 68 69 63 68 20 |ecked, i|n which |
|00005ab0| 63 61 73 65 20 74 68 65 | 79 20 61 72 65 0d 7c 20 |case the|y are.| |
|00005ac0| 32 20 6f 72 20 34 20 62 | 79 74 65 73 20 64 65 70 |2 or 4 b|ytes dep|
|00005ad0| 65 6e 64 69 6e 67 20 6f | 6e 20 68 6f 77 20 62 69 |ending o|n how bi|
|00005ae0| 67 20 79 6f 75 72 20 69 | 6e 74 73 20 61 72 65 2e |g your i|nts are.|
|00005af0| 0d 7c 20 0d 7c 20 33 29 | 20 4d 65 74 72 6f 77 65 |.| .| 3)| Metrowe|
|00005b00| 72 6b 73 20 43 20 28 36 | 38 4b 29 20 2d 2d 20 73 |rks C (6|8K) -- s|
|00005b10| 61 6d 65 20 61 73 20 54 | 68 69 6e 6b 20 43 20 28 |ame as T|hink C (|
|00005b20| 36 38 4b 29 2e 0d 7c 20 | 0d 7c 20 34 29 20 4d 65 |68K)..| |.| 4) Me|
|00005b30| 74 72 6f 77 65 72 6b 73 | 20 43 20 28 50 50 43 29 |trowerks| C (PPC)|
|00005b40| 20 2d 2d 20 65 6e 75 6d | 73 20 61 72 65 20 31 2c | -- enum|s are 1,|
|00005b50| 20 32 2c 20 6f 72 20 34 | 20 62 79 74 65 73 20 28 | 2, or 4| bytes (|
|00005b60| 62 61 73 65 64 20 6f 6e | 20 76 61 6c 75 65 73 29 |based on| values)|
|00005b70| 0d 7c 20 65 78 63 65 70 | 74 20 69 66 20 74 68 65 |.| excep|t if the|
|00005b80| 20 22 45 6e 75 6d 73 20 | 61 72 65 20 61 6c 77 61 | "Enums |are alwa|
|00005b90| 79 73 20 69 6e 74 73 22 | 20 70 72 65 66 65 72 65 |ys ints"| prefere|
|00005ba0| 6e 63 65 20 69 73 20 63 | 68 65 63 6b 65 64 2c 20 |nce is c|hecked, |
|00005bb0| 69 6e 20 77 68 69 63 68 | 20 63 61 73 65 0d 7c 20 |in which| case.| |
|00005bc0| 74 68 65 79 20 61 72 65 | 20 34 20 62 79 74 65 73 |they are| 4 bytes|
|00005bd0| 2e 0d 7c 20 0d 7c 20 35 | 29 20 50 50 43 43 20 28 |..| .| 5|) PPCC (|
|00005be0| 41 70 70 6c 65 27 73 20 | 4d 50 57 20 62 61 73 65 |Apple's |MPW base|
|00005bf0| 64 20 50 50 43 20 63 6f | 6d 70 69 6c 65 72 29 20 |d PPC co|mpiler) |
|00005c00| 2d 2d 20 49 20 64 6f 6e | 27 74 20 6b 6e 6f 77 2e |-- I don|'t know.|
|00005c10| 0d 7c 20 36 29 20 41 70 | 70 6c 65 27 73 20 6e 65 |.| 6) Ap|ple's ne|
|00005c20| 77 20 50 50 43 20 43 20 | 63 6f 6d 70 69 6c 65 72 |w PPC C |compiler|
|00005c30| 20 28 42 65 74 61 20 6f | 6e 20 45 54 4f 20 23 31 | (Beta o|n ETO #1|
|00005c40| 35 29 20 2d 2d 20 49 20 | 64 6f 6e 27 74 20 6b 6e |5) -- I |don't kn|
|00005c50| 6f 77 0d 7c 20 37 29 20 | 4d 6f 74 6f 72 6f 6c 61 |ow.| 7) |Motorola|
|00005c60| 20 43 20 28 50 50 43 29 | 20 2d 2d 20 49 20 64 6f | C (PPC)| -- I do|
|00005c70| 6e 27 74 20 6b 6e 6f 77 | 0d 7c 20 38 29 20 41 62 |n't know|.| 8) Ab|
|00005c80| 73 6f 66 74 20 43 20 28 | 50 50 43 29 20 2d 2d 20 |soft C (|PPC) -- |
|00005c90| 49 20 64 6f 6e 27 74 20 | 6b 6e 6f 77 0d 0d 39 29 |I don't |know..9)|
|00005ca0| 20 53 79 6d 61 6e 74 65 | 63 20 43 2f 43 2b 2b 20 | Symante|c C/C++ |
|00005cb0| 2d 2d 20 65 6e 75 6d 73 | 20 61 72 65 20 31 2c 20 |-- enums| are 1, |
|00005cc0| 32 2c 20 6f 72 20 34 20 | 62 79 74 65 73 20 62 61 |2, or 4 |bytes ba|
|00005cd0| 73 65 64 20 6f 6e 20 76 | 61 6c 75 65 73 2e 20 49 |sed on v|alues. I|
|00005ce0| 66 20 65 6e 75 6d 73 0d | 61 72 65 20 61 6c 77 61 |f enums.|are alwa|
|00005cf0| 79 73 20 69 6e 74 73 20 | 69 73 20 63 68 65 63 6b |ys ints |is check|
|00005d00| 65 64 2c 20 74 68 65 6e | 20 74 68 65 79 20 61 72 |ed, then| they ar|
|00005d10| 65 20 34 20 62 79 74 65 | 73 2e 20 54 68 65 20 72 |e 4 byte|s. The r|
|00005d20| 75 6c 65 73 20 61 72 65 | 20 74 68 65 20 73 61 6d |ules are| the sam|
|00005d30| 65 0d 66 6f 72 20 62 6f | 74 68 20 74 68 65 20 36 |e.for bo|th the 6|
|00005d40| 38 6b 20 61 6e 64 20 50 | 6f 77 65 72 50 43 20 63 |8k and P|owerPC c|
|00005d50| 6f 6d 70 69 6c 65 72 73 | 2e 0d 0d 41 70 70 6c 65 |ompilers|...Apple|
|00005d60| 27 73 20 6e 65 77 20 50 | 50 43 20 43 2b 2b 20 63 |'s new P|PC C++ c|
|00005d70| 6f 6d 70 69 6c 65 72 20 | 28 61 6b 61 20 4d 72 43 |ompiler |(aka MrC|
|00005d80| 29 20 73 68 6f 75 6c 64 | 20 62 65 20 74 68 65 20 |) should| be the |
|00005d90| 73 61 6d 65 20 61 73 20 | 53 79 6d 61 6e 74 65 63 |same as |Symantec|
|00005da0| 20 43 2b 2b 2c 0d 73 69 | 6e 63 65 20 74 68 65 79 | C++,.si|nce they|
|00005db0| 20 73 68 61 72 65 20 63 | 6f 6d 70 69 6c 65 72 20 | share c|ompiler |
|00005dc0| 66 72 6f 6e 74 20 65 6e | 64 73 2e 0d 0d 28 2a 29 |front en|ds...(*)|
|00005dd0| 20 49 6e 20 41 4e 53 49 | 20 43 2c 20 65 6e 75 6d | In ANSI| C, enum|
|00005de0| 73 20 61 72 65 20 74 68 | 65 20 73 61 6d 65 20 73 |s are th|e same s|
|00005df0| 69 7a 65 20 61 73 20 69 | 6e 74 2c 20 70 72 6f 76 |ize as i|nt, prov|
|00005e00| 69 64 65 64 20 74 68 61 | 74 20 74 68 65 20 76 61 |ided tha|t the va|
|00005e10| 6c 75 65 0d 74 68 61 74 | 20 74 68 65 79 20 63 6f |lue.that| they co|
|00005e20| 6e 74 61 69 6e 20 63 61 | 6e 20 62 65 20 72 65 70 |ntain ca|n be rep|
|00005e30| 72 65 73 65 6e 74 65 64 | 20 69 6e 20 61 6e 20 69 |resented| in an i|
|00005e40| 6e 74 2e 20 53 6f 20 77 | 68 65 6e 20 79 6f 75 20 |nt. So w|hen you |
|00005e50| 75 73 65 20 74 68 65 20 | 22 65 6e 75 6d 73 0d 61 |use the |"enums.a|
|00005e60| 72 65 20 61 6c 77 61 79 | 73 20 69 6e 74 73 22 20 |re alway|s ints" |
|00005e70| 6f 70 74 69 6f 6e 2c 20 | 79 6f 75 27 72 65 20 72 |option, |you're r|
|00005e80| 65 61 6c 6c 79 20 73 61 | 79 69 6e 67 20 74 68 61 |eally sa|ying tha|
|00005e90| 74 20 74 68 65 79 27 72 | 65 20 61 74 20 6c 65 61 |t they'r|e at lea|
|00005ea0| 73 74 20 61 73 20 62 69 | 67 0d 61 73 20 61 6e 20 |st as bi|g.as an |
|00005eb0| 69 6e 74 2e 20 54 68 65 | 79 20 63 61 6e 20 62 65 |int. The|y can be|
|00005ec0| 20 62 69 67 67 65 72 2c | 20 6f 72 20 75 6e 73 69 | bigger,| or unsi|
|00005ed0| 67 6e 65 64 20 28 6f 72 | 20 62 6f 74 68 29 2c 20 |gned (or| both), |
|00005ee0| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 74 68 65 |dependin|g on the|
|00005ef0| 0d 76 61 6c 75 65 20 74 | 68 61 74 20 74 68 65 79 |.value t|hat they|
|00005f00| 20 63 6f 6e 74 61 69 6e | 2e 0d 0d 54 68 65 20 6d | contain|...The m|
|00005f10| 61 69 6e 20 74 68 69 6e | 67 20 69 73 20 74 68 61 |ain thin|g is tha|
|00005f20| 74 20 79 6f 75 20 73 68 | 6f 75 6c 64 6e 27 74 20 |t you sh|ouldn't |
|00005f30| 64 65 70 65 6e 64 20 6f | 6e 20 74 68 65 20 73 69 |depend o|n the si|
|00005f40| 7a 65 20 6f 66 20 61 6e | 20 65 6e 75 6d 2e 20 49 |ze of an| enum. I|
|00005f50| 66 20 79 6f 75 0d 70 6c | 61 6e 20 74 6f 20 64 6f |f you.pl|an to do|
|00005f60| 20 49 2f 4f 20 77 69 74 | 68 20 61 6e 20 65 6e 75 | I/O wit|h an enu|
|00005f70| 6d 2c 20 63 61 73 74 20 | 69 74 20 74 6f 20 61 20 |m, cast |it to a |
|00005f80| 6b 6e 6f 77 6e 20 28 70 | 6f 72 74 61 62 6c 65 29 |known (p|ortable)|
|00005f90| 20 74 79 70 65 20 66 69 | 72 73 74 2e 0d 0d 20 20 | type fi|rst... |
|00005fa0| 20 2d 70 68 69 6c 0d 0d | 2b 2b 2b 2b 2b 2b 2b 2b | -phil..|++++++++|
|00005fb0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005fc0| 2b 2b 2b 0d 0d 3e 46 72 | 6f 6d 20 61 66 72 61 6e |+++..>Fr|om afran|
|00005fd0| 63 6b 65 40 6e 65 74 63 | 6f 6d 2e 63 6f 6d 20 28 |cke@netc|om.com (|
|00005fe0| 41 6e 64 72 65 77 20 46 | 72 61 6e 63 6b 65 29 0d |Andrew F|rancke).|
|00005ff0| 44 61 74 65 3a 20 46 72 | 69 2c 20 31 39 20 41 75 |Date: Fr|i, 19 Au|
|00006000| 67 20 31 39 39 34 20 32 | 31 3a 31 36 3a 32 39 20 |g 1994 2|1:16:29 |
|00006010| 47 4d 54 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|00006020| 3a 20 4e 65 74 63 6f 6d | 20 4f 6e 6c 69 6e 65 20 |: Netcom| Online |
|00006030| 43 6f 6d 6d 75 6e 69 63 | 61 74 69 6f 6e 73 20 53 |Communic|ations S|
|00006040| 65 72 76 69 63 65 73 20 | 28 34 30 38 2d 32 34 31 |ervices |(408-241|
|00006050| 2d 39 37 36 30 20 6c 6f | 67 69 6e 3a 20 67 75 65 |-9760 lo|gin: gue|
|00006060| 73 74 29 0d 0d 3e 20 54 | 68 65 20 6d 61 69 6e 20 |st)..> T|he main |
|00006070| 74 68 69 6e 67 20 69 73 | 20 74 68 61 74 20 79 6f |thing is| that yo|
|00006080| 75 20 73 68 6f 75 6c 64 | 6e 27 74 20 64 65 70 65 |u should|n't depe|
|00006090| 6e 64 20 6f 6e 20 74 68 | 65 20 73 69 7a 65 20 6f |nd on th|e size o|
|000060a0| 66 20 61 6e 20 65 6e 75 | 6d 2e 20 49 66 0d 3e 20 |f an enu|m. If.> |
|000060b0| 79 6f 75 20 70 6c 61 6e | 20 74 6f 20 64 6f 20 49 |you plan| to do I|
|000060c0| 2f 4f 20 77 69 74 68 20 | 61 6e 20 65 6e 75 6d 2c |/O with |an enum,|
|000060d0| 20 63 61 73 74 20 69 74 | 20 74 6f 20 61 20 6b 6e | cast it| to a kn|
|000060e0| 6f 77 6e 20 28 70 6f 72 | 74 61 62 6c 65 29 20 74 |own (por|table) t|
|000060f0| 79 70 65 20 66 69 72 73 | 74 2e 0d 3e 20 20 2d 70 |ype firs|t..> -p|
|00006100| 68 69 6c 0d 0d 49 27 6d | 20 61 66 72 61 69 64 20 |hil..I'm| afraid |
|00006110| 74 68 69 73 20 69 73 20 | 61 20 6d 6f 6f 74 20 70 |this is |a moot p|
|00006120| 6f 69 6e 74 20 69 6e 20 | 6d 79 20 63 61 73 65 2e |oint in |my case.|
|00006130| 20 49 27 76 65 20 61 6c | 72 65 61 64 79 20 67 6f | I've al|ready go|
|00006140| 74 20 61 20 73 69 7a 61 | 62 6c 65 0d 61 6d 6f 75 |t a siza|ble.amou|
|00006150| 6e 74 20 6f 66 20 41 53 | 4e 2e 31 2d 63 6f 6d 70 |nt of AS|N.1-comp|
|00006160| 69 6c 65 72 2d 67 65 6e | 65 72 61 74 65 64 20 43 |iler-gen|erated C|
|00006170| 20 73 6f 75 72 63 65 20 | 77 69 74 68 20 65 6e 75 | source |with enu|
|00006180| 6d 73 20 61 27 70 6c 65 | 6e 74 79 20 69 6e 0d 73 |ms a'ple|nty in.s|
|00006190| 74 72 75 74 75 72 65 20 | 64 65 63 6c 61 72 61 74 |truture |declarat|
|000061a0| 69 6f 6e 73 2e 0d 0d 49 | 27 6c 6c 20 73 74 61 74 |ions...I|'ll stat|
|000061b0| 65 20 6d 79 20 71 75 65 | 73 74 69 6f 6e 20 61 67 |e my que|stion ag|
|000061c0| 61 69 6e 3a 0d 47 49 56 | 45 4e 20 54 48 45 20 52 |ain:.GIV|EN THE R|
|000061d0| 49 47 48 54 20 53 45 54 | 20 4f 46 20 43 4f 4d 50 |IGHT SET| OF COMP|
|000061e0| 49 4c 45 52 20 4f 50 54 | 49 4f 4e 53 2c 20 69 73 |ILER OPT|IONS, is|
|000061f0| 20 6e 6f 74 20 74 68 65 | 20 4c 43 44 20 6f 66 20 | not the| LCD of |
|00006200| 65 6e 75 6d 20 73 69 7a | 65 73 0d 74 68 65 20 31 |enum siz|es.the 1|
|00006210| 2d 32 2d 34 20 70 61 63 | 6b 69 6e 67 20 73 63 68 |-2-4 pac|king sch|
|00006220| 65 6d 65 3f 20 49 20 79 | 65 74 20 6c 61 62 6f 72 |eme? I y|et labor|
|00006230| 20 75 6e 64 65 72 20 74 | 68 65 20 69 6d 70 72 65 | under t|he impre|
|00006240| 73 73 69 6f 6e 20 74 68 | 61 74 20 4d 50 57 20 43 |ssion th|at MPW C|
|00006250| 0d 64 6f 65 73 6e 27 74 | 20 65 76 65 6e 20 73 75 |.doesn't| even su|
|00006260| 70 70 6f 72 74 20 22 65 | 6e 75 6d 73 20 61 72 65 |pport "e|nums are|
|00006270| 20 69 6e 74 73 22 20 61 | 73 20 61 6e 20 6f 70 74 | ints" a|s an opt|
|00006280| 69 6f 6e 2e 0d 0d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion...--|--------|
|00006290| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062a0| 2d 0d 0d 3e 46 72 6f 6d | 20 72 65 64 69 61 6c 20 |-..>From| redial |
|000062b0| 3c 72 65 64 69 61 6c 40 | 6e 65 74 63 6f 6d 2e 63 |<redial@|netcom.c|
|000062c0| 6f 6d 3e 0d 53 75 62 6a | 65 63 74 3a 20 46 6f 6c |om>.Subj|ect: Fol|
|000062d0| 6c 6f 77 75 70 20 6f 6e | 20 27 53 61 66 65 20 53 |lowup on| 'Safe S|
|000062e0| 61 76 65 27 20 70 72 6f | 62 6c 65 6d 20 2d 20 73 |ave' pro|blem - s|
|000062f0| 74 69 6c 6c 20 74 69 63 | 6b 69 6e 67 21 0d 44 61 |till tic|king!.Da|
|00006300| 74 65 3a 20 53 61 74 2c | 20 32 30 20 41 75 67 20 |te: Sat,| 20 Aug |
|00006310| 31 39 39 34 20 32 31 3a | 34 36 3a 34 34 20 47 4d |1994 21:|46:44 GM|
|00006320| 54 0d 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|00006330| 4e 45 54 43 4f 4d 20 4f | 6e 2d 6c 69 6e 65 20 43 |NETCOM O|n-line C|
|00006340| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 20 53 65 72 |ommunica|tion Ser|
|00006350| 76 69 63 65 73 20 28 34 | 30 38 20 32 36 31 2d 34 |vices (4|08 261-4|
|00006360| 37 30 30 20 67 75 65 73 | 74 29 0d 0d 4e 65 74 74 |700 gues|t)..Nett|
|00006370| 65 72 73 20 2d 0d 0d 54 | 68 61 6e 6b 73 20 74 6f |ers -..T|hanks to|
|00006380| 20 61 6c 6c 20 77 68 6f | 20 61 74 74 65 6d 70 74 | all who| attempt|
|00006390| 65 64 20 74 6f 20 68 65 | 6c 70 20 77 69 74 68 20 |ed to he|lp with |
|000063a0| 6d 79 20 27 53 61 66 65 | 20 73 61 76 65 27 20 70 |my 'Safe| save' p|
|000063b0| 72 6f 62 6c 65 6d 2e 20 | 20 49 74 20 64 69 64 0d |roblem. | It did.|
|000063c0| 69 6e 64 65 65 64 20 6c | 6f 6f 6b 20 61 73 20 74 |indeed l|ook as t|
|000063d0| 68 6f 20 20 63 6c 6f 73 | 69 6e 67 20 74 68 65 20 |ho clos|ing the |
|000063e0| 74 65 6d 70 6f 72 61 72 | 79 20 66 69 6c 65 20 61 |temporar|y file a|
|000063f0| 66 74 65 72 20 74 68 65 | 20 46 53 70 45 78 63 68 |fter the| FSpExch|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.